How can I bulk delete all my account's resources?




  • Avatar
    achal bi


    I am using rails app and i have executed the below command to delete all my images. 



    Even after deleting all images from my console I can still access these images through the previous URL. Though i cant see my uploaded images in Media library I dont see any changes in my storage size. Please help me on this.

  • Avatar
    Itay Taragano

    While the images were successfully deleted from your account, they're still cached in the CDN.

    For more information:

  • Avatar
    pik look

    so how about videos ?

  • Avatar
    Roee Ben Ari

    When deleting either videos or raw files, a resource_type should be set as well. For example (in Rails):

    Cloudinary::Api.delete_all_resources(:resource_type => :video)
  • Avatar
    Max Hodges

    move the UPDATE right to the top of this article!

  • Avatar
    Eric Sharp

    What does the "Prefix" search actually mean? Can I put a domain URL to remove all images from a particular domain?

  • Avatar
    Aditi Madan

    By prefix search, we mean the first few characters of the public_id. Eg: your image is a sample, you can search by the prefix which can be "sam", "s", "samp" etc. 

    Is the domain URL the public_id of the image or is it the fetched resource? Can you share an example?



Please sign in to leave a comment.