Skip to main content
Version: 2.0

Delete Corpus API Definition

The Delete Corpus API lets you delete a corpus and all the data it contains. To delete a corpus, send a DELETE request to /v2/corpora/{corpus_key}, where {corpus_key} is the unique identifier of the corpus.

Upon successful completion, space quota consumed by the corpus will be freed, and the corpus will no longer be useable for future indexing or querying.

note

The corpus_key assigned to the corpus will be released and can be reused.

tip

Check out our API Reference that lets you experiment with this REST endpoint to delete corpora.

REST 2.0 URL

Delete Corpus REST Endpoint

Vectara exposes a REST endpoint at the following URL to delete a corpus:
https://api.vectara.io/v2/corpora/:corpus_key

The API Reference shows the full Delete Corpus REST definition.

gRPC Example

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