Skip to main content
DELETE
Rate limit tier: general, 600 requests/min. See Rate limits. Deletes a document packet and every file in it, along with its runs and extraction results. The delete is permanent and takes effect at once, and the API offers no call that undoes it. The stored files are deleted right after. For an organization with zero data retention that deletion is final; otherwise storage keeps a deleted file’s previous version for up to 60 days before destroying it. Returns 204 No Content on success. An unknown id returns 404, as does a packet belonging to another organization.

Skipping the deletion window

By default the deletion’s record is kept for a deletion window of 14 days, or 24 hours for an organization with zero data retention, and its deletion certificate is issued once that window ends. Send X-Anyformat-Skip-Deletion-Window: true to forget the deleted packet at once instead, so its certificate is issued within about ten minutes. Any other value, or no header, keeps the window. Use it when you need the certificate now, for example to test deletion end to end.

Authorizations

Authorization
string
header
required

API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.

Headers

X-Anyformat-Skip-Deletion-Window
string | null

true forgets the deleted data at once instead of keeping it restorable for the deletion window, so its deletion certificate is issued right away. The delete cannot then be undone.

Path Parameters

document_packet_id
string
required

Response

Successful Response