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

Follow

Comments

4 comments

  • Avatar
    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.

  • Avatar
    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-

  • 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)
    

Please sign in to leave a comment.