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_idstringpathrequiredThe UUID of the knowledge source to delete.
Response
successbooleanAlways
true.deleted_idstringThe ID of the deleted source.
Example
curl -X DELETE \
"https://api.chatty.personaliai.com/api/v1/knowledge/ks-uuid-003" \
-H "Authorization: Bearer chatty_sk_your_key"200 OK:
{ "success": true, "deleted_id": "ks-uuid-003" }404 — source doesn't exist:
{ "detail": "Source not found" }403 — source belongs to a different bot:
{ "detail": "Source belongs to a different bot" }