Permanently deletes the version from the database.
[Visual Basic .NET] Public Sub Delete ( _ )
[C#] public void Delete ( );
[C++] HRESULT Delete( void );
Deletes the transactional version. Must be the version owner to delete a version.
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.
The Delete method is used to permanently delete a version. Only the owner of the version or the ArcSDE administrator can delete the version.