How can I delete an image via the API?

Deleting a single file can be done via the API with the destroy method. e.g. (Node JS):

cloudinary.uploader.destroy('zombie', function(result) { console.log(result) });

For more information (Node JS):
http://cloudinary.com/documentation/node_image_upload#update_and_delete_images

Bulk deletions by various criteria can be done via the Admin API, for more information:
http://cloudinary.com/documentation/admin_api#delete_resources

Note that the Admin API is rate limited.

 

Have more questions? Submit a request

Comments

Powered by Zendesk