Cloudinary's Admin API allows you to delete up to 1000 derived images based on a given transformation, with a single call.
Let's assume your account has several images, which you previously generated derived images for, using the following transformation: 'c_thumb,g_face,h_150,w_150'.
Using one of our SDKs, you can delete both the transformation and its derivatives with one go.
You can either make the call based on the transformation name or by specifying the transformation parameters (Examples are in PHP):
Delete transformation by name
Delete transformation by parameters
$api->delete_transformation(array("crop" => "thumb", "gravity" => "face",
"height" => 150, "width" => 150));
You can find additional examples using our different SDKs here.
The Admin API is rate limited, hence every call made counts towards your hourly quota.
* Please note that this method is only supported if there are up to 1000 resources to delete.
** Like any other Admin API call, the API Secret is required, therefore it should only be called from the server side.