Delete Knowledge Base
This method allows you to delete a previously created knowledge base using its ID.
You can obtain the ID of the knowledge base to delete either from the API response when you created the knowledge base, or by listing the available knowledge bases.
Note that knowledge bases that are in use by an agent cannot be deleted. If you attempt to do so, the API will raise an error. In this case, you have to unlink the knowledge base from all agents before being able to delete it.
knowledge_base_id
Successful Response
{
"id": "string",
"object": "string",
"deleted": false
}
id
object
deleted
Invalid knowledge base ID.
The knowledge base is not in a state where it can be deleted.
Validation Error
"HTTPValidationError Object"
detail
curl -X DELETE -H 'Authorization: <value>' https://{api_host}/api/v1/control/knowledge-bases/{knowledge_base_id}