v6

OpenAPI 3.1.0Apache-2.0raw.githubusercontent.com2026-08-011951192.5 KB
Document

Delete Document by document ID

Delete document by document_id from index with index_id ⚠️ Use search or get_iterator first to obtain a valid doc_id. Document IDs are not guaranteed to be continuous and gapless! Immediately effective, independent of commit. Index space used by deleted documents is not reclaimed (until compaction is implemented), but result_count_total is updated. By manually deleting the delete.bin file the deleted documents can be recovered (until compaction). Deleted documents impact performance, especially but not limited to counting (Count, TopKCount). They also increase the size of the index (until compaction is implemented). For minimal query latency delete index and reindexing documents is preferred over deleting documents (until compaction is implemented). BM25 scores are not updated (until compaction is implemented), but the impact is minimal.

delete/api/v1/index/{index_id}/doc/{document_id}

Path parameters

index_idinteger required

index id

document_idinteger required

document id

Headers

apikeystring required

YOUR_SECRET_API_KEY

Response

Document deleted, returns indexed documents count