Skip to main content
DELETE
Delete Document
Delete a knowledge base document. This removes it from storage and all agent attachments.
Cannot delete documents that are attached to agents. Detach first using the detach endpoint.

Headers

string
required
Your API key for authentication.
string
required
The organization ID.

Path Parameters

string
required
The unique identifier of the document to delete.

Permissions

  • kb:delete (admin, agent_manager)

Response

boolean
Indicates if the deletion was successful.
string
Human-readable success message.

Errors

object
Document not found.
object
Document belongs to different organization.
object
Cannot delete - document is attached to agents. Detach it first.