Delete(Boolean):Void
Deletes the current data object or a data structure.
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.
These errors can not only occur for the data object currently up for deletion, but can also occur if there are further data objects underneath the data object and these are also deleted. If an error occurs over the entire deletion process, then the entire deletion process is aborted or rolled back. onion.net ensures during this procedure that either all or no data objects of the data structure are deleted.
Parameter
- recurse
Type: System.Boolean
This parameter indicates whether the data object and all data objects under it are to be deleted. If false is indicated as the value, then only the current data object is explicitly deleted. If data objects exist under it nevertheless, then the exception DataObjectReferencedException is triggered.