---
title: "Cleanup unconfigured resolutions"
method: POST
path: "/library/{libraryId}/videos/{videoId}/resolutions/cleanup"
tags: ["Manage Videos"]
---

# Cleanup unconfigured resolutions

`POST /library/{libraryId}/videos/{videoId}/resolutions/cleanup`

## Path parameters

- `libraryId` integer, required
- `videoId` string, required

## Query parameters

- `resolutionsToDelete` string, nullable
- `deleteNonConfiguredResolutions` boolean
- `allResolutions` boolean
- `deleteOriginal` boolean
- `outputs` string, nullable
- `deleteMp4Files` boolean
- `dryRun` boolean

## Response `200`

The resolutions were successfully deleted

- StatusModel
  - `success` boolean — Determines if the request was successful
  - `message` string, nullable — Response message description
  - `statusCode` integer — The response status code

## Other responses

- `401` — The request authentication failed
- `403` — The request authorization failed
- `404` — The requested video was not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/revisions/9e622620664b/schema)
