Cleanup unconfigured resolutions
Changed onDeletes stored resolution files that are no longer configured for the library, or the specific resolutions passed in resolutionsToDelete/allResolutions. This cannot be undone. If the library has 'keep original files' turned off, the original source file is also deleted as part of this cleanup even when deleteOriginal is not set.
Request
- Base URLhttps://video.bunnycdn.com
- AuthAPI key in header AccessKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The ID of the video library.
The GUID of the video.
Query parameters
Comma-separated list of specific resolutions to delete (e.g. "720p,480p"), instead of relying on deleteNonConfiguredResolutions/allResolutions.
If set to true, all resolutions not currently configured for the library will be deleted.
If set to true, all resolutions for the video will be deleted, regardless of library configuration. When targeting HLS resolutions (the default, or outputs=all), at least one resolution must remain after cleanup or the request is rejected — scope outputs to mp4 to remove every rendition.
If set to true, the original source file is deleted as well. Note: the original is also deleted when the library has 'keep original files' disabled, regardless of this flag.
Outputs to clean. Supported values: hls, mp4, all
If set to true, MP4 fallback files for the deleted resolutions are removed too.
If set to true, no actual file manipulation will happen, only informational data will be returned
Response
The resolutions were successfully deleted
Changes
- breaking
the response's body type changed from
objectto no type for status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added
subschema #2to the response bodyallOflist for the response status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- breaking