Delete Document
Documents
Delete Document
Delete a document record and its underlying object storage file
DELETE
Delete Document
Request
Deletion is permanent. The document metadata row is removed, every entity link is detached, and the object-storage bytes are scheduled for deletion within 1 hour. Audit log entries are retained per the workspace’s retention policy.Path Parameters
Document UUID.
Query Parameters
When
true, the object storage file is deleted immediately rather than scheduled. Requires the admin:documents permission.Headers
Optional UUID. Repeated DELETEs with the same key return the same result without erroring.
Response
On success returns HTTP204 No Content. Standard rate-limit headers and X-Request-ID are present.
Example Response
Errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing write:documents (or admin:documents when hard=true) |
| 404 | not_found | Document not found |
| 409 | in_use | Document is referenced by a workflow or template and cannot be deleted |
| 429 | rate_limited | Rate limit exceeded |