Skip to main content

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

Successful Response