---
title: "Delete Rag Index."
method: DELETE
path: "/v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}"
tags: ["Agents Platform"]
---

# Delete Rag Index.

`DELETE /v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}`

## Request

- Base URL: `https://api.elevenlabs.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elevenlabs.io/v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}`
- Auth: none declared

Delete RAG index for the knowledgebase document.

## Path parameters

- `documentation_id` string, required: The id of a document from the knowledge base. This is returned on document addition.
- `rag_index_id` string, required: The id of RAG index of document from the knowledge base.

## Headers

- `xi-api-key` string, nullable: Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `200`

Successful Response

- RAGDocumentIndexResponseModel
  - `id` string, required
  - `model` 'e5_mistral_7b_instruct' | 'multilingual_e5_large_instruct', required
  - `status` 'new' | 'created' | 'processing' | 'failed' | 'succeeded' | 'rag_limit_exceeded' | 'document_too_small' | 'cannot_index_folder', required
  - `progress_percentage` number, required
  - `document_model_index_usage` RAGDocumentIndexUsage, required
    - `used_bytes` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-04-03** `deb5e58ddddf`: 1 warning, 1 info
  - added the new `new` enum value to the `status` response property for the response status `200`
  - the `model` response's property default value `e5_mistral_7b_instruct` was added for the status `200`
- **2026-02-08** `5b595807512c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/convai/knowledge-base/:documentation_id/rag-index/:rag_index_id/delete.md)

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) - [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/revisions/d04f5e77c40a?raw)
