curl -X DELETE https://api.bland.ai/v1/knowledge/kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T \
-H "authorization: YOUR_API_KEY"
{
"data": {
"success": true,
"message": "Knowledge base successfully deleted",
"knowledge_base_id": "kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T"
},
"errors": null
}
Soft deletes a knowledge base by setting its status to ‘DELETED’.
curl -X DELETE https://api.bland.ai/v1/knowledge/kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T \
-H "authorization: YOUR_API_KEY"
{
"data": {
"success": true,
"message": "Knowledge base successfully deleted",
"knowledge_base_id": "kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T"
},
"errors": null
}
"DELETED". This is a soft delete operation - the knowledge base data is retained but becomes inaccessible for normal operations.
null on successful deletion.curl -X DELETE https://api.bland.ai/v1/knowledge/kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T \
-H "authorization: YOUR_API_KEY"
{
"data": {
"success": true,
"message": "Knowledge base successfully deleted",
"knowledge_base_id": "kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T"
},
"errors": null
}
Was this page helpful?