Skip to main content

Delete or expire a document by ID

DELETE 

/documents/:document_id

Deletes or expires a document found by the document identifier alone, without the pipeline identifier. Without expire, the operation permanently removes every version and every fragment of the document and returns status 204. With expire=true, the operation marks every current version as expired and returns status 200, and the version history remains readable.

Permissions. To delete: read, write and execute on the pipeline, and the document's classification in the allow-list. To expire: write and execute on the pipeline, and the document's classification in the allow-list.

Documents, versions and fragments compares expiry and deletion.

Request​

Responses​

The document was expired (expire=true). The body is empty.