Skip to main content
POST
Bulk Delete Knowledge Base Documents

Headers

x-api-key
string | null

Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.

Body

application/json
document_ids
string[]
required

The ids of documents or folders from the knowledge base.

Required array length: 1 - 20 elements
Example:
force
boolean
default:false

If set to true, documents or folders will be deleted regardless of whether they are used by any agents and will be removed from the dependent agents. For non-empty folders, this will also delete all child documents and folders.

Response

Successful Response

{key}
KnowledgeBaseBulkDeleteSuccessfulResponseModel · object