There are few ways to delete derived resources via the UI and API.
- Delete derived resources by public id
- Delete derived resources by transformation
- Delete derived resources by derived id
- Delete all derived resources in the account
Delete derived resources by public id
In order to bulk delete derived resource using the Admin API we should set the parameter
true, this ensures that only derived resources are deleted. For example, (in Rails):
Cloudinary::Api.delete_resources(['image1', 'image2'], :keep_original => true)
You can choose to delete only derived resources of a certain type, for example - Facebook fetched profile images:
Cloudinary::Api.delete_all_resources(:type => :facebook, :keep_original => true)
Delete derived resources by transformation1
You can choose to delete derived resources that use a particular transformation, for example - `w_200,c_limit`:
Cloudinary::Api.delete_resources(:public_ids => ['sample1','sample2'], :transformations => "w_200,c_limit")
Delete derived resources by derived id
Delete assets by their derived id. The derived ids can be retrieved by getting the details of a single resource.
Delete all derived resources in the account1
You can also use the
delete_all_resources method to bulk delete all derived images of your uploaded resources in batches of 1000 resources per call. For example:
Cloudinary::Api.delete_all_resources(:keep_original => true)
1 When there are still more resources to go through, the
next_cursor value is returned as part of the response. You can then specify this value as the
next_cursor parameter of the following call. This way you can go through the full list of your resources.
For more information, see: http://support.cloudinary.com/hc/en-us/articles/205714121-How-do-I-browse-through-all-resources-in-my-account-using-the-API-
You'll need to be logged to your Cloudinary account to perform the following actions:
Delete derived resources individually
- Click on the Media Library tab
- Select the asset and click on the "Edit" icon
- Click on the View derived images button that's right above the image
- In the left-hand side, there will be options to delete the derived versions
Bulk delete derived
- Click on the gear icon in the top right-hand corner which will take you to a new view
- In the right-hand panel, there is a heading called "Support Activities" and under it, there should be a link labeled Bulk delete.