Delete a document (soft by default)
DELETE/v1/knowledge-bases/:kb_id/documents/:document_id
Remove a document from a knowledge base.
By default this is a soft delete: the document stops appearing in searches and
listings but the row is retained. Pass hard=true to purge the document and
its embedding chunks permanently.
Requires the knowledge:write scope.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 429
Successful Response
Error
Error
Error
Error
Validation Error
Error