I have deleted an image, and though it has been removed from the media library, it is still available via URL?

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.

Have more questions? Submit a request

Comments

  • Avatar
    Adham Mowafy

    What If I want to perform immediate delete to all copies of the image

  • Avatar
    Itay Taragano

    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 to true . 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

  • Avatar
    David Ohayon

    Hi,

    We need to perform immediate delete to all copies of the images.

    Please let us now how.

  • Avatar
    Matthias Feist

    Is the "invalidate" Parameter still there and useable? Because I didn't find anything about it in the documentation...

  • Avatar
    Itay Taragano

    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

  • Avatar
    Matthias Feist

    Thank you. Can I use the invalidate command when deleting images by prefix?

  • Avatar
    Itay Taragano

    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.

  • Avatar
    Julien Bornstein

    could I invalide a deleted image after it has already been deleted (without invalidate option) ?

  • Avatar
    Itay Taragano

    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.

  • Avatar
    Julien Bornstein

    thanks, could it be a feature in the admin panel ?

  • Avatar
    Itay Taragano

    It is on our road-map to support invalidating via the Media library, however there's no ETA for this yet.

  • Avatar
    Felipe Lascaray

    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

  • Avatar
    Nadav Ofir

    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.

Powered by Zendesk