Tone docs
API referenceKnowledge bases

Remove a document from a knowledge base

The index is rebuilt without it. Until that build succeeds, the old index keeps serving.

Requires the write scope. A key with less gets 403 insufficient_scope.

DELETE
/v1/knowledge-bases/{id}/documents/{documentId}
AuthorizationBearer <token>

Authorization: Bearer tone_live_… or tone_test_…. The prefix IS the environment: a test key reaches only the sandbox, and no request field bridges the two.

In: header

Path Parameters

id*string

The knowledge base's id.

documentId*string

The document's id.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/knowledge-bases/string/documents/string"
{  "data": null}
Was this page helpful?