---
title: "Delete a document and its chunks"
method: DELETE
path: "/api/rag/{project_id}/documents/{document_id}"
tags: ["RAG"]
---

# Delete a document and its chunks

`DELETE /api/rag/{project_id}/documents/{document_id}`

## Request

- Base URL: `https://core.blink.new`
- URL: `https://core.blink.new/api/rag/{project_id}/documents/{document_id}`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, required
- `document_id` string, required

## Response `200`

Document deleted

## Other responses

- `401`: Authentication required or invalid API key
- `404`: Document not found

---

[API](https://skmtc.dev/blink/apis/blink-apis.md) - [All operations](https://skmtc.dev/blink/apis/blink-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/blink/apis/blink-apis/revisions/4c59c706078e?raw)
