Skip to main content
DELETE
/
v1
/
collections
/
{id}
/
cache
curl -X DELETE https://api.okrapdf.com/v1/collections/col-40da068481cf4f248853507cba6be611/cache \
  -H "Authorization: Bearer okra_YOUR_KEY"

Overview

Purges all cached query results for a collection. Useful after adding or removing documents to ensure fresh answers.

Request

id
string
required
Collection ID (col-...) or collection name.
curl -X DELETE https://api.okrapdf.com/v1/collections/col-40da068481cf4f248853507cba6be611/cache \
  -H "Authorization: Bearer okra_YOUR_KEY"

Response (200)

{
  "ok": true
}