This document is archived and information here might be outdated.  Recommended version.


IVersion.Delete Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IVersion.Delete Method

Permanently deletes the version from the database.

[Visual Basic .NET]
Public Sub Delete ( _
)
[C#]
public void Delete (
);
[C++]
HRESULT Delete(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Deletes the transactional version. Must be the version owner to delete a version.

Errors Returned

FDO_E_SE_NO_PERMISSIONS: Insufficient permissions.

FDO_E_VERSION_HAS_CHILDREN: Unable to delete versions with dependant children.

FDO_E_VERSION_NOT_OWNER: Not owner of version.

FDO_E_NO_OPERATION_LICENSE: Not licensed to make this change.

FDO_E_OBJECT_IS_DELETED: Version does not exist.

FDO_E_NOT_ALLOWED_WHILE_EDITING: Version is locked.

FDO_E_VERSION_IN_USE: Version is locked.

FDO_E_VERSION_HAS_CHILDREN (unless cascading requested).

Functional License Check

If your application/site is not appropriately licensed, Delete can return an error of FDO_E_NO_OPERATION_LICENSE.

Remarks

The Delete method is used to permanently delete a version. Only the owner of the version or the ArcSDE administrator can delete the version.

See Also

IVersion Interface