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

Follow

Comments

13 comments

  • Avatar
    Adham Mowafy

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

    3
    Comment actions Permalink
  • 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

    0
    Comment actions Permalink
  • Avatar
    Erwan Vezin

    Hi,

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

    Please let us now how.

    1
    Comment actions Permalink
  • Avatar
    Matthias Feist

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

    1
    Comment actions Permalink
  • 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

    0
    Comment actions Permalink
  • Avatar
    Matthias Feist

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

    0
    Comment actions Permalink
  • 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.

    0
    Comment actions Permalink
  • Avatar
    Julien Bornstein

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

    0
    Comment actions Permalink
  • 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.

    0
    Comment actions Permalink
  • Avatar
    Julien Bornstein

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

    0
    Comment actions Permalink
  • Avatar
    Itay Taragano

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

    0
    Comment actions Permalink
  • 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

    0
    Comment actions Permalink
  • 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.

    0
    Comment actions Permalink

Please sign in to leave a comment.