Skip to main content
DELETE
/
v1
/
knowledge
/
{kb_id}
Delete Knowledge Base
curl --request DELETE \
  --url https://api.xpander.ai/v1/knowledge/{kb_id} \
  --header 'x-api-key: <api-key>'
{
  "message": "Knowledge base deleted successfully"
}
Permanently delete a knowledge base and all its documents. This action cannot be undone.

Path Parameters

kb_id
string
required
Unique identifier of the knowledge base to delete (UUID format)

Response

Returns 202 Accepted on successful deletion.

Example Request

curl -X DELETE -H "x-api-key: <your-api-key>" \
  https://api.xpander.ai/v1/knowledge/<kb-id>

Example Response

HTTP/1.1 202 Accepted
Content-Type: application/json

null

Notes

  • All documents in the knowledge base will be permanently removed
  • All vector embeddings will be deleted from the search index
  • Agents using this knowledge base will lose access to it
  • This action cannot be undone
  • Returns 404 if the knowledge base is not found

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

kb_id
string
required

Response

Successful Response