Skip to main content
DELETE
Delete (archive) a saved document.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Path Parameters

document_id
string
required

Query Parameters

force
boolean
default:false

Confirm deletion of a doc that is open in another session. Without it, deleting an in-use doc fails with HTTP 409 (code document_in_use, open_in_sessions:N) instead of tombstoning — nothing is archived until you re-call with force=true.

from_session
string | null

The caller's own session id (so it is excluded from the in-use check). Omit for a pure Files-view delete.

Response

Successful Response