---
title: "Delete Collection"
method: DELETE
path: "/library/{libraryId}/collections/{collectionId}"
tags: ["Manage Collections"]
---

# Delete Collection

`DELETE /library/{libraryId}/collections/{collectionId}`

## Request

- Base URL: `https://video.bunnycdn.com`
- URL: `https://video.bunnycdn.com/library/{libraryId}/collections/{collectionId}`
- Auth: API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/stream-api/docs/library/:libraryId/collections/:collectionId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently deletes the collection together with every video and live stream it contains — nothing is moved out of the collection first, it is deleted along with it. Fails with 400 if the collection contains a currently running live stream; stop it before deleting the collection. This cannot be undone.

## Path parameters

- `libraryId` integer, required
- `collectionId` string, required

## Response `200`

The collection was successfully deleted

- StatusModel
  - `success` boolean: Determines if the request was successful
  - `message` string, nullable: Human-readable message describing the result, typically populated with error details when Success is false.
  - `statusCode` integer: The HTTP status code corresponding to the result of the request.

## Other responses

- `400`: The collection cannot currently be deleted
- `401`: The request authentication failed
- `403`: The request authorization failed
- `404`: The requested collection was not found
- `500`: Internal Server Error

## Changes

- **2026-11-12** `83116184952f`: 5 info
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `403`
  - added the media type `application/json` for the response with the status `404`
  - added the media type `application/json` for the response with the status `500`
  - …1 more

[Operation history](https://skmtc.dev/bunny/apis/stream-api/changes/library/:libraryId/collections/:collectionId/delete.md)

---

[API](https://skmtc.dev/bunny/apis/stream-api.md) - [All operations](https://skmtc.dev/bunny/apis/stream-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/stream-api/revisions/83116184952f?raw)
