Bulk delete knowledge base documents

Delete multiple documents or folders from the knowledge base. Each id succeeds or fails independently.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
document_idslist of strings必需
The ids of documents or folders from the knowledge base.
forceboolean可选默认为 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.

响应

Successful Response
successobject
OR
failureobject

错误

422
Documents Bulk Delete Request Unprocessable Entity Error