VersionCol Remove Method

See Also

This method deletes an object version from a version collection.

Syntax

Call object.Remove( index )
Call object.Remove( objectId )
Call object.Remove( objectVersionId )

The Remove method syntax has the following parts.

Part Description
object The version collection.
index The index of the item to be removed from the collection.
objectID The object identifier for the object version or workspace to be removed from the collection. You can supply an objectID only for the Versions-of-Workspace collection, the Workspaces-of-version collection, or the Checkouts-of-workspace collection.
objectVersionID The object-version identifier for the item to be removed from the collection. You can supply an objectVersionID for any version collection.

Remarks

There are many different kinds of object-version collections. You can apply this method to some of them, but not to others. This method works for:

This method fails for: