E168: Delete document
DELETE /api/documents/:id
Hard-deletes the attachment: the org.documents row first, then a best-effort delete of the GCS object (an orphaned object is swept later; the row is the source of truth).
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Response — 200 OK
{ "deletedId": "uuid" }
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such document in this org. |
Workflow
Calls W168 Delete document.