Skip to main content

Overview

Delete a specific document from a Knowledge Base without affecting the Knowledge Base itself. This endpoint is useful for removing outdated, duplicate, or incorrect files while preserving the remaining documents.

Prerequisites

  • Bearer token for an authenticated workspace
  • Valid Knowledge Base ID
  • Valid document filename

Request

string
required
Bearer token for authenticated workspace access.
string
required
Unique identifier of the Knowledge Base.
string
required
Name of the document to delete from the Knowledge Base.

Response

Response Fields

boolean
Indicates whether the request completed successfully.
integer
HTTP status code returned by the API.
string
Confirmation message indicating the document was deleted.

Error Handling

Deleting a document permanently removes it from the Knowledge Base. AI agents will no longer use the deleted document when answering user queries.
Related endpoints:
  • GET /api/knowledgeBase/{knowledgeBaseId}/documents — View all documents in the Knowledge Base.
  • PUT /api/knowledgeBase/{knowledgeBaseId} — Upload additional documents or update the Knowledge Base.
  • DELETE /api/knowledgeBase/{knowledgeBaseId} — Delete the entire Knowledge Base.