Bulk Delete Documents

View as Markdown
Delete multiple documents in a single request. This endpoint will: - Remove documents from vector database - Delete associated S3 files - Remove database records - Queue background cleanup tasks Returns detailed results for each document, including success/failure status.

Request

This endpoint expects an object.
document_idslist of integersRequired

List of document IDs to delete (max 100 at once)

Response

Bulk deletion completed (may include partial failures)

total_requestedinteger
Total documents requested for deletion
deleted_countinteger
Number of documents successfully deleted
failed_countinteger
Number of documents that failed to delete
resultslist of maps from strings to any
Detailed results for each document

Errors

400
Bad Request Error
401
Unauthorized Error