Skip to main content

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

Comments

9 comments

  • achal bi

    Hi,

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

    Cloudinary::Api.delete_all_resources

     

    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.

    0
  • Itay Taragano

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

    For more information:

    http://support.cloudinary.com/entries/23310776-I-have-deleted-an-image-and-though-it-has-been-removed-from-the-media-library-it-is-still-available-

    0
  • pik look

    so how about videos ?

    0
  • 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)
    
    0
  • Max Hodges

    move the UPDATE right to the top of this article!

    1
  • Eric Sharp

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

    0
  • 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?

    Thanks,

    Aditi

    0
  • Upendra Singh

    @aditi Is the prefix applicatable only at sub account level or global level

    0
  • Marissa Masangcay

    Hi Upendra,

    The bulk delete in general only works for each sub-account and does not delete your assets on a global level so you'll have to run a separate bulk delete call for each of your sub-accounts.

    0

Please sign in to leave a comment.