---
title: "Delete a RAG document."
method: DELETE
path: "/v1/ai/rag/documents/{doc_id}"
tags: ["AI"]
---

# Delete a RAG document.

`DELETE /v1/ai/rag/documents/{doc_id}`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/v1/ai/rag/documents/{doc_id}`
- Auth: HTTP bearer

Removes a document from the retrieval-augmented generation index.

## Path parameters

- `doc_id` string, required

## Response `200`

Document deleted

## Other responses

- `401`: Missing or invalid API key
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
