Bulk delete documents from a corpus
DELETE/v2/corpora/:corpus_key/documents
Supported API Key Type:
Index ServicePersonal
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
- 202
- 400
- 403
- 404
Bulk delete operation accepted and queued.
Invalid request.
Permissions do not allow bulk deleting documents.
Corpus not found.