Deletes a document with the specified id, moving it to the trash section.
The document itself is deleted synchronously, while its children and related entities
are deleted asynchronously in the background if <paramref name="alsoDeleteChildren" /> is true.
If <paramref name="alsoDeleteChildren" /> is false, the children's parent references are updated to point to the deleted document's parent.
<Check><b>Required Permissions</b>: The user has at least `manage` permissions for this document.</Check>
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Path parameters
documentId
The document id.
Query parameters
alsoDeleteChildren
Whether all children of this document should be deleted.
Response
OK