Permanently deletes a document from the vault including all associated vectors, chunks, graph data, and the original file. This operation cannot be undone.
curl --request DELETE \
--url https://api.case.dev/vault/{id}/objects/{objectId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"deletedObject": {
"id": "obj_abc123",
"filename": "contract.pdf",
"sizeBytes": 1024000,
"vectorsDeleted": 28
}
}API key starting with sk_case_
Force delete a stuck document that is still in 'processing' state. Use this if a document got stuck during ingestion (e.g., OCR timeout).
true Was this page helpful?
curl --request DELETE \
--url https://api.case.dev/vault/{id}/objects/{objectId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"deletedObject": {
"id": "obj_abc123",
"filename": "contract.pdf",
"sizeBytes": 1024000,
"vectorsDeleted": 28
}
}