Remove all documents and data in a corpus
POST/v2/corpora/:corpus_key/reset
Resets a corpus, which removes all documents and data from the specified corpus, while keeping the corpus itself.
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 to reset.
Responses
- 204
- 403
- 404
Successfully reset a corpus.
Permissions do not allow resetting 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 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...