awork icon

awork

Automate your workflows with the awork API

Actions110

Document → Delete Document

AI-generated

Summary

Delete a specified document in awork by its document ID, optionally deleting all its child documents.

Inputs

  • Document ID (required) — The ID of the document to delete.
  • Also Delete Children — Boolean flag to determine whether to delete child documents of the specified document. If false, children are moved to the deleted document's parent.

Output shape

a JSON object confirming the deletion or providing the API response result

The response typically confirms the deletion status. If children are not deleted, they are reassigned to the deleted document's parent. No pagination or batching applies to the single delete operation, but batching options exist to throttle multiple delete requests if input contains multiple document IDs.

Links

Discussion