Remove images
Is it possible to remove a set of images, like all transformed images of one type? We've changed the size of our avatar images and we would like to recover some storage space removing the old ones...
-
Yes, indeed.
Here's an Admin API example of deleting all derived resources of Facebook fetched profile pictures:
Cloudinary::Api.delete_all_resources(:type => :facebook, :keep_original => true)
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 thenext_cursor
parameter of the following call. This way you can go through the full list of your resources.For more information:
http://cloudinary.com/documentation/admin_api#delete_resources0
Post is closed for comments.
Comments
1 comment