Remove a document from a knowledge base
workbench_kb_document_deleteRemoves one ingested document and all its chunks; searches stop returning it at once. Get the documentId from workbench_kb_documents_list. To replace a document, remove it then workbench_kb_add_documents the new version. May return needs_confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kbId | Yes | Knowledge base id. | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | Approval id from a prior needs_confirmation response. Omit on the first call. | |
| documentId | Yes | Document id, from workbench_kb_documents_list. |