Delete():Void

Deletes the current data object.

This method deletes the data object from the data repository in onion.net. Depending on the status of the data object and the context in which the deletion process is carried out, the data object is moved into an archive. Further information on the possible statuses after deletion can be consulted under the point data archive.

The attempt to delete a data object checked out by another user will trigger the exception DataObjectCheckedOutException.

Data objects referenced by other data objects can also not be deleted. In this case a DataObjectReferencedException is triggered.

If the data object has been edited in a ChangeSet, then it cannot be deleted. A DataObjectLockedException is triggered in this case.

If there are further data objects underneath the data object to be deleted, then the exception DataObjectReferencedException is triggered when the method is executed. The method Delete can be used in order to recursively delete data objects.

Return type: System.Void