Skip to main content
Version: v1.0.0(int)

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

HTTPcodeCondition
404not_foundNo such document in this org.

Workflow

Calls W168 Delete document.