Skip to main content

Delete or expire a document

DELETE 

/pipelines/:pipeline_id/documents/:document_id

Deletes or expires a document in a pipeline. 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.