---
title: "Delete a collection"
method: POST
path: "/ragtune/delete"
tags: ["Ragtune"]
---

# Delete a collection

`POST /ragtune/delete`

## Request

- Base URL: `https://apipie.ai`
- URL: `https://apipie.ai/ragtune/delete`
- Auth: API key in header `Authorization`

Deletes an entire collection. If you need more fine-grained deletion controls (e.g., deleting specific records), use the `/vectors` endpoint.

## Request body

- DeleteCollectionRequest
  - `collection_name` string
  - `delete_all` boolean
  - `ids` string[]
  - `filter` object

## Response `200`

Collection deleted successfully

- DeleteCollectionResponse
  - `message` string

## Other responses

- `400`: Collection name missing from the request
- `500`: Internal server error

---

[API](https://skmtc.dev/apipie/apis/introduction.md) · [All operations](https://skmtc.dev/apipie/apis/introduction/llms.txt) · [OpenAPI document](https://skmtc.dev/apipie/apis/introduction/revisions/f8386be4eb3f?raw)
