---
title: "POST /v1/delete-doc"
method: POST
path: "/v1/delete-doc"
tags: ["IndexService"]
---

# POST /v1/delete-doc

`POST /v1/delete-doc`

Delete documents from a corpus.

Some tips for this API:
* This operation authenticates with either the Personal API Key, Index API Key, or OAuth 2.0 (in a JWT "Bearer Token"). You can find details of how to set up an API key or use OAuth 2.0 [here](https://docs.vectara.com/docs/console-ui/manage-api-access).
* You can quickly delete all documents from a corpus to clear it out by using the [Reset Corpus](https://docs.vectara.com/docs/rest-api/reset-corpus) operation.

## Headers

- `customer-id` integer, required
- `timeout` string

## Request body

- VectaraDeleteDocumentRequest — Request to delete a document from an index.
  - `customerId` string, int64, required — The Customer ID to issue the request for.
  - `corpusId` string, int64, required — The Corpus ID that contains the document.
  - `documentId` string, required — The Document ID to be deleted.

## Response `200`

A successful response.

- VectaraDeleteDocumentResponse

## Other responses

- `default` — An unexpected error response.

---

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