Bulk delete documents from a corpus
DELETE/v2/corpora/:corpus_key/documents
Initiates an asynchronous bulk delete operation for documents in a corpus. This operation accepts a metadata filter, a list of specific document IDs, or both.
Important: This is a best-effort operation.
See the response schema documentation for details on the behavior differences between metadata_filter and document_ids parameters.
The operation runs as a background workflow.
Use the returned job_id to track progress via the Jobs API.
Request
Responses
- 200
- 202
- 400
- 403
- 404
- 504
Bulk delete operation completed successfully (synchronous mode).
Bulk delete operation accepted and queued.
Invalid request.
Permissions do not allow bulk deleting documents.
Corpus not found.
Synchronous operation timed out. The error message contains the job_id to track status via Jobs API. Workflow continues running in background.