Skip to main content
DELETE
/
v1
/
documents
/
{id}
curl -X DELETE https://api.okrapdf.com/v1/documents/doc-abc123 \
  -H "Authorization: Bearer okra_YOUR_KEY"

Overview

Permanently deletes a document, its extracted content, page images, and exports. This action cannot be undone.

Request

id
string
required
Document ID (e.g. doc-abc123) or 6-char short hash.
curl -X DELETE https://api.okrapdf.com/v1/documents/doc-abc123 \
  -H "Authorization: Bearer okra_YOUR_KEY"

Response (200)

{
  "deleted": true,
  "id": "doc-abc123"
}