RepositoryObjectVersion Delete Method

See Also

This method deletes the Repository object version from the Repository.

Syntax

Call object.Delete

The Delete method syntax has these parts:

Part Description
object An object expression that evaluates to a RepositoryObjectVersion object.

Remarks

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 object version satisfies both of these restrictions, the Repository deletes it and any of its relationships — including any delete-propagating origin relationships. For each of these relationships, the Repository considers performing one or more propagated deletions. See Propagation after removing an origin relationship.