All images and transformed images are delivered by Cloudinary through a CDN with advanced caching for optimizing performance and improving the experience of your users. Images that were already available in your site, are cached in one or more CDN edges. Therefore, even if you delete the image from your Cloudinary account, cached copies might still be available. In default, all delivered images are cached for 30 days. This means that after that time all cached copies of deleted images would be removed from the CDN too.
In most cases, these behavior answers the requirements of web sites and mobile applications. Note that any public image might be have been also copied or cached by proxies, search engines, etc. It is in our roadmap to allow forcing immediate invalidation of cached CDN copies of deleted image using the Cloudinary API.
Comments
13 comments
What If I want to perform immediate delete to all copies of the image
Hi
You can use our admin API to delete a resource, but we can't control the caching policies of different servers along the way, so it will take time to propagate.
As for CDN invalidations - Cloudinary supports deleting with CDN invalidations.
When deleting an image from the Media library, it's automatically invalidated.
When using the API, you can set the
invalidate
parameter totrue
. For example in PHP:\Cloudinary\Uploader::destroy('my_image', array("invalidate" => TRUE));
Note that it might take up to an hour for the invalidation to fully propagate through the CDN.
Itay
Hi,
We need to perform immediate delete to all copies of the images.
Please let us now how.
Is the "invalidate" Parameter still there and useable? Because I didn't find anything about it in the documentation...
Hi Matthias,
Yes, indeed the
invalidate
parameter is still usable. It is mentioned at the Update and delete images section under the specific platforms' documentation. For example, in PHP:http://cloudinary.com/documentation/php_image_upload#update_and_delete_images
Thank you. Can I use the invalidate command when deleting images by prefix?
Currently the 'invalidate' parameter isn't supported for Admin API bulk deletion calls.
However, if you require assistance, please let us know the relevant details via a ticket ( http://support.cloudinary.com/tickets/new) and we'll be happy to help.
could I invalide a deleted image after it has already been deleted (without invalidate option) ?
You can share the URL with us and we'll be happy to assist and manually invalidate it for you on our end. If privacy is an issue, please feel free to open a support ticket.
thanks, could it be a feature in the admin panel ?
It is on our road-map to support invalidating via the Media library, however there's no ETA for this yet.
Hi Itay, i enable the invalidate option in settings and I replace an image with the invalidate = true option but the image is not invalidating.
I paste the image url (with and without version number)
http://res.cloudinary.com/almundo-com/image/upload/catalog/imagen_ybkcb6gippz1pzht1emi.jpg
http://res.cloudinary.com/almundo-com/image/upload/v1465503280/catalog/imagen_ybkcb6gippz1pzht1emi.jpg
Thanks
Hi Felipe,
Please see here: https://support.cloudinary.com/hc/en-us/articles/209048985-Why-wasn-t-my-URL-properly-invalidated-
If you wish to change the default behaviour please open a support ticket and we'll be happy to set it for you.
Please sign in to leave a comment.