Skip to main content
DELETE
/
api
/
v1
/
collections
/
{collectionId}
/
documents
cURL
curl -X DELETE https://app.okrapdf.com/api/v1/collections/col-abc123/documents \
  -H "Authorization: Bearer okra_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"doc_ids": ["ocr-abc123"]}'
{
  "removed": 123
}

Authorizations

Authorization
string
header
required

API key as Bearer token: Authorization: Bearer okra_xxx

Path Parameters

collectionId
string
required

Body

application/json
doc_ids
string[]
required

OCR job IDs to remove

Example:
["ocr-abc123"]

Response

Documents removed

removed
integer