API reference · Knowledge

Delete a document

DELETEhttps://goblins-call-api.onrender.com/v1/knowledge/documents/:id

Removes the document, everything taken from it and its file. Agents that named it no longer have it on their next call.

Needs a workspace API key.

Path parameters

idstringRequired

The document’s ID, such as kd_4b1f0c9d2e7a6f53.

Errors

404

No document in your workspace has that ID.

Every request can also answer 401, 429 and 500: see Errors.

curl -X DELETE "https://goblins-call-api.onrender.com/v1/knowledge/documents/kd_4b1f0c9d2e7a6f53" \
  -H "Authorization: Bearer $CRACKLE_API_KEY"
Response · 200 OK
{
  "ok": true,
  "id": "kd_4b1f0c9d2e7a6f53"
}