Skip to main content
Version: 2.0

Reset Corpus API Definition

The Reset Corpus API lets you reset a corpus, which deletes the contents of a corpus, but it does not delete the corpus itself.

To reset a corpus, send a POST request to /v2/corpora/{corpus_key}/reset, where {corpus_key} is the unique identifier for the corpus. The corpus_key is string that was provided during the corpus creation.

Upon successful completion, space quota consumed by the corpus will be freed.

tip

Check out our API Playground that lets you experiment with this REST endpoint to reset corpora.

REST 2.0 URL

Reset Corpus REST Endpoint

Vectara exposes a REST endpoint at the following URL to reset a corpus:
https://api.vectara.io/v2/reset-corpus

The API Playground shows the full Reset Corpus REST definition.

gRPC Example

You can find the full Reset Corpus gRPC definition at admin.proto.