Delete Document
Permanently delete a document and all associated extractions. This action is irreversible and removes the original file and all extraction results.
Permanently delete a document along with its original file, extracted text, and all associated extraction results. This operation cannot be undone.
/v1/documents/:idResponse
Response fields
Response
{
"deleted": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}Most integrations call this endpoint as part of a cleanup workflow after data has been exported or when a document was uploaded in error. A typical pattern is to list documents with GET /v1/documents, identify candidates for deletion, then call this endpoint for each one.
The response includes a deleted field set to true and the id of the removed document. There is no soft-delete mechanism — the original file, OCR markdown, and all extraction results are permanently purged from storage.
Pair this with GET /v1/documents/:id beforehand to verify you are deleting the correct resource. Note that if the document participated in entity linking or cases, those links are removed and affected cases may be recomputed during the next backfill cycle.
Errors
Error responses