Knowledge Bases
Delete Knowledge Base Item
Soft deletes a knowledge base item by setting its status to ‘DELETED’.
DELETE
/
v1
/
knowledge
/
{knowledge_base_id}
curl -X DELETE https://api.bland.ai/v1/knowledge/kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T \
-H "authorization: Bearer YOUR_API_KEY"
{
"data": {
"success": true,
"message": "Knowledge base successfully deleted",
"knowledge_base_id": "kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T"
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "KB_ERROR",
"message": "KB not found or access denied"
}
]
}
Marks a knowledge base item as deleted by setting its status to
Docs for agents: llms.txt
"DELETED". This is a soft delete operation - the knowledge base item data is retained but becomes inaccessible for normal operations.
Headers
string
required
Your API key for authentication.
Path Parameters
string
required
The unique identifier of the knowledge base item to delete.
Response
object
null
Will be
null on successful deletion.curl -X DELETE https://api.bland.ai/v1/knowledge/kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T \
-H "authorization: Bearer YOUR_API_KEY"
{
"data": {
"success": true,
"message": "Knowledge base successfully deleted",
"knowledge_base_id": "kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T"
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "KB_ERROR",
"message": "KB not found or access denied"
}
]
}
Docs for agents: llms.txt
Was this page helpful?
⌘I
curl -X DELETE https://api.bland.ai/v1/knowledge/kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T \
-H "authorization: Bearer YOUR_API_KEY"
{
"data": {
"success": true,
"message": "Knowledge base successfully deleted",
"knowledge_base_id": "kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T"
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "KB_ERROR",
"message": "KB not found or access denied"
}
]
}