---
title: "Delete a corpus and all its data"
method: DELETE
path: "/v2/corpora/{corpus_key}"
tags: ["Corpora"]
---

# Delete a corpus and all its data

`DELETE /v2/corpora/{corpus_key}`

Permanently deletes a corpus and all its associated data. The `corpus_key` uniquely identifies the corpus.

On successful completion, the space quota consumed by the corpus is freed. The corpus is no longer usable for indexing or querying.

:::note
The corpus_key assigned to the corpus is released and can be reused.
:::

## Path parameters

- `corpus_key` string, required — A user-provided key for a corpus.

## Headers

- `Request-Timeout` integer
- `Request-Timeout-Millis` integer

## Response `204`

Successfully deleted a corpus.

## Other responses

- `403` — Permissions do not allow deleting the corpus.
- `404` — Corpus not found.

---

[API](https://skmtc.dev/vectara/apis/vectara-rest-api-v2.md) · [All operations](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vectara/vectara-rest-api-v2/revisions/05ae305c8d84/schema)
