C
Chatty

Delete Knowledge Source

DELETE/api/v1/knowledge/{source_id}

Permanently removes a knowledge source. The bot will no longer use the content when answering questions.

Required scope: write

Deletion is permanent. The bot's answers may change immediately once the source is removed.

Path parameters

source_idstringpathrequired
The UUID of the knowledge source to delete.

Response

successboolean
Always true.
idstring
The ID of the deleted source.
deletedboolean
Always true.

Example

cURL
curl -X DELETE \
  "https://api.personaliai.com/api/v1/knowledge/ks-uuid-003" \
  -H "Authorization: Bearer chatty_sk_your_key"

200 OK:

{ "success": true, "id": "ks-uuid-003", "deleted": true }

404 — not found:

{ "detail": "Knowledge source not found or belongs to a different bot" }