Actions31
Document → Delete
AI-generatedSummary
Delete a document by its UUID or URL slug, either moving it to the trash for potential recovery or permanently destroying it with no recovery option.
Inputs
- Document ID (required) — The UUID or URL slug of the document to delete.
- Permanent — A boolean option specifying whether to permanently destroy the document (true) or move it to the trash (false, default).
Output shape
a JSON object containing the API response on document deletion.
The operation returns the raw response data from the Outline API's document delete endpoint. If the 'Permanent' option is false or omitted, the document is moved to trash and can be restored later; if true, the deletion is irreversible.
Examples
Example 1: Delete a document by UUID, moving it to trash (non-permanent).
Set Document ID with the document's UUID; do not check the Permanent field or set it to false.
Example 2: Permanently destroy a document by URL slug.
Set Document ID with the document's URL slug; set Permanent to true to bypass trash and fully remove the document.