Delete a document record and its underlying object storage file
true, the object storage file is deleted immediately rather than scheduled. Requires the admin:documents permission.204 No Content. Standard rate-limit headers and X-Request-ID are present.
| 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 |