Skip to content
LogoLogo

Permanently delete a Document

Permanently delete a Document

DELETE/api/v1/documents/{document_id}/permanent

Permanently removes an active or archived leaf Document, including its revision history, collaboration state and resource links. Requires the same Workspace and owning Project write permission as editing. Documents with any child (including archived children) return 409 document_has_children. Git-bound Documents return 409 document_git_managed. A stale If-Match returns 409 revision_conflict. Attachment objects retain their existing cleanup policy. Archive and Restore use separate operations.

Path Parameters

document_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

If-MatchRequired
string

Entity tag containing the resource version last observed by the client.

Responses