Skip to main content

Reset Corpus API Definition

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

To reset a corpus, specify the customer_id and corpus_id. 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 Example

Reset Corpus REST Endpoint

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

The API Playground shows the full Delete Corpus REST definition.

gRPC Example

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