Delete Document

Delete a document and all associated data. This action: - Removes the document from all collections - Deletes all embeddings and chunks - Removes the document metadata - Cannot be undone The document will no longer be available for RAG or queries. Returns the deleted document, including its embedding instances, in the response body.

Authentication

AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

OR
AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

Path parameters

document_idstringRequiredformat: "uuid"
The UUID of the document to delete
org_idstringRequiredformat: "uuid"
The unique identifier of the organization.
project_idstringRequiredformat: "uuid"
The unique identifier of the project.

Response

The document was deleted
titlestring
project_idstringformat: "uuid"
strategystring
idstringformat: "uuid"
chunksinteger
original_mimestring
embedding_instanceslist of objects or null
descriptionstring or nullOptional
sourceenum or nullOptional
Source types for documents in the system.
source_metamap from strings to any or nullOptional
connection_idstring or nullOptionalformat: "uuid"

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error