Skip to main content
Version: 2.0

Delete a document

DELETE 

/v2/corpora/:corpus_key/documents/:document_id

Permanently delete a document identified by its unique document_id from a specific corpus. This operation cannot be undone, so use it with caution.

Request

Path Parameters

    corpus_key CorpusKeyrequired

    Possible values: <= 50 characters, Value must match regular expression [a-zA-Z0-9_\=\-]+$

    The unique key identifying the corpus with the document to delete.

    document_id stringrequired

    The document ID of the document to delete. This document_id must be percent encoded.

Header Parameters

    Request-Timeout integer

    Possible values: >= 1

    The API will make a best effort to complete the request in the specified seconds or time out.

    Request-Timeout-Millis integer

    Possible values: >= 1

    The API will make a best effort to complete the request in the specified milliseconds or time out.

Responses

Successfully deleted the document.

Loading...