---
title: "Delete Collection"
method: DELETE
path: "/api/knowledge/collections/{collection_id}"
tags: ["knowledge", "knowledge"]
---

# Delete Collection

`DELETE /api/knowledge/collections/{collection_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/knowledge/collections/{collection_id}`
- Auth: none declared

Delete a collection.

By default, fails if the collection is used by any prompts or channels.
Use force=true to delete anyway (will remove from all prompts/channels).

## Path parameters

- `collection_id` integer, required

## Query parameters

- `force` boolean: Force delete even if in use

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
