RepositoryObjectVersion Delete Method

Meta Data Services Programming

Meta Data Services Programming

RepositoryObjectVersion Delete Method

This method deletes the repository object version from the repository.

This method is not attached to the default interface for the repository Automation object; it is attached to the IRepositoryItem interface. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

Syntax

Call object.Delete

The Delete method syntax has the followings part:

Part Description
object An object expression that evaluates to a RepositoryObjectVersion instance
Remarks

A delete operation succeeds only under certain conditions.

If an object version has a successor, it cannot be deleted. To delete an object version that has successors, you must delete all successors first.

If an object is checked out to a workspace, you must invoke Delete from within 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 relationship, the repository engine considers performing one or more propagated deletions.

See Also

IRepositoryItem Interface

Delete Propagation After Removing an Origin Relationship

RepositoryObjectVersion Object

Requirements for Object-Version Deletion

Workspace Context