Skip to main content
POST
/
library
/
{libraryId}
/
videos
/
{videoId}
/
resolutions
/
cleanup
Cleanup unconfigured resolutions
curl --request POST \
  --url https://video.bunnycdn.com/library/{libraryId}/videos/{videoId}/resolutions/cleanup \
  --header 'AccessKey: <api-key>'
{
  "success": true,
  "message": "<string>",
  "statusCode": 123
}

Authorizations

AccessKey
string
header
required

AccessKey based authentication

Path Parameters

libraryId
integer<int64>
required
videoId
string
required

Query Parameters

resolutionsToDelete
string | null
deleteNonConfiguredResolutions
boolean
default:false
deleteOriginal
boolean
default:false
deleteMp4Files
boolean
default:false
dryRun
boolean
default:false

If set to true, no actual file manipulation will happen, only informational data will be returned

Response

The resolutions were successfully deleted

success
boolean

Determines if the request was successful

message
string | null

Response message description

statusCode
integer<int32>

The response status code