This method deletes the Repository object version from the repository.
Call object.Delete
The Delete method syntax has these parts:
Part | Description |
Object | An object expression that evaluates to a RepositoryObjectVersion object. |
This method fails unless the object version satisfies the basic requirements for object-version deletion. Furthermore, if the object version is checked out to any workspace, the Delete method fails unless you invoke it from within the context of that workspace. If the object version satisfies both of these restrictions, the Repository engine deletes it and any of its relationships — including any delete-propagating origin relationships. For each of these relationships, the Repository engine considers performing one or more propagated deletions. See Propagation after removing an origin relationship.