Get or Set Image Public_ID from Web-Browser
Hello. I upload some images from browser, some via .Net library. Is it possible to delete Image using .Net library if I don't know public_id param ? Can I get this param via url using library or some other way in browser window?
-
Hi Ilya,
You can delete by public_id, prefix, or tag. More information here: https://cloudinary.com/documentation/admin_api#delete_resources
If you have the URL then you already have the public_id as public_id is the last part of the URL after version or transformation.
For eg: https://res.cloudinary.com/demo/image/upload/v26789735/sample.jpg
In the above URL sample is the public_id.
More information on URL and public_id here:https://cloudinary.com/documentation/upload_images#public_id_the_image_identifier
Thanks,
Aditi1
Post is closed for comments.
Comments
1 comment