Delete a document
DELETE/v2/corpora/:corpus_key/documents/:document_id
Permanently deletes a document from a corpus. The unique document_id identifies the document. This operation cannot be undone, so use it with caution. The response arrives once the document has been removed.
Request
Responses
- 204
- 403
- 404
- 409
- 422
- 429
- 503
- 504
Successfully deleted the document.
Permissions do not allow deleting a document in the corpus.
Corpus or document not found.
The document changed, or the corpus was reset, after this request was received. The document is left in place; delete it again to remove the current version.
The document cannot be deleted individually. Resetting the corpus (resetCorpus) removes it along with every other document in the corpus.
Too many deletions are in progress. Please retry.
The deletion did not complete; the document may still be present. Please retry.
The deletion could not be confirmed within the request timeout. It may still complete; read the document (getCorpusDocument) and retry if it is still present.