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.idstringThe ID of the deleted source.
deletedbooleanAlways
true.Example
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" }