Skip to main content
Version: 2.0

Delete a document

DELETE 

https://api.vectara.io/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.

Authorization: x-api-key

name: x-api-keytype: apiKeyin: header
curl -L -X DELETE 'https://api.vectara.io/v2/corpora/:corpus_key/documents/:document_id' \
-H 'x-api-key: <API_KEY_VALUE>'
Request Collapse all
Base URL
https://api.vectara.io
Auth
Parameters
— pathrequired
— pathrequired
— header
— header
ResponseClear

Click the Send API Request button above and see the response here!