Delete a document
DELETE/v2/corpora/:corpus_key/documents/:document_id
Delete a document
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.
The document_id
must be percent encoded.
Responses
- 204
- 403
- 404
Successfully deleted the document.
Permissions do not allow deleting a document in the corpus.
- application/json
- Schema
- Example (from schema)
Schema
messages message[]
The messages describing why the error occurred.
request_id string
The ID of the request that can be used to help Vectara support debug what went wrong .
{
"messages": [
"Internal server error."
],
"request_id": "string"
}
Corpus or document not found.
- application/json
- Schema
- Example (from schema)
Schema
id string
The ID cannot found.
messages message[]
request_id string
ID of the request that can be used to help Vectara support debug what went wrong.
{
"id": "string",
"messages": [
"string"
],
"request_id": "string"
}
Loading...