Skip to main content
DELETE
Known issue: don’t use this endpoint for now. It currently deletes the entire knowledge base, with all its files and its search index, instead of the one file named in the path. It behaves exactly like Delete Knowledge Base and returns 204 No Content. This page will be updated when it is fixed.

Overview

Intended to delete one file from one of your organization’s knowledge bases, keeping the other files.

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.
string
required
Name of the file, URL-encoded.

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.