---
title: "Delete a collection and all its documents"
method: DELETE
path: "/api/rag/{project_id}/collections/{collection_id}"
tags: ["RAG"]
---

# Delete a collection and all its documents

`DELETE /api/rag/{project_id}/collections/{collection_id}`

## Request

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

## Path parameters

- `project_id` string, required
- `collection_id` string, required

## Response `200`

Collection deleted

## Other responses

- `401`: Authentication required or invalid API key
- `404`: Collection 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)
