Skip to main content
DELETE

Overview

Permanently delete one of your organization’s knowledge bases, with all its files and its search index. The knowledge base is not removed from agents that use it. Remove it from those agents with Update Agent (knowledgeBase) so they don’t refer to a deleted knowledge base.
This can’t be undone.

Prerequisites

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the knowledge base to delete.

Response

A successful request returns 204 No Content with no body.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – knowledgeBaseId isn’t a valid ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – KnowledgeBase not found: it doesn’t exist in your organization.
  • 429 Too Many Requests – More than 1,000 Knowledge Base requests in 15 minutes from your IP address.
  • 500 Internal Server Error – Unexpected server error.
  • 502 Bad Gateway – Failed to delete vector storage. Knowledge base deletion aborted: …. The files may already be deleted; send the request again.