Skip to content

Instantly share code, notes, and snippets.

@dalton-cole
Created May 22, 2015 11:53
Show Gist options
  • Save dalton-cole/aec0725b2cfed017ce1c to your computer and use it in GitHub Desktop.
Save dalton-cole/aec0725b2cfed017ce1c to your computer and use it in GitHub Desktop.
Delete all from Cloudinary in ruby
#delete all images uploaded to your cloudinary cloud
require 'cloudinary'
$api_key = "YOUR_API_KEY"
$api_secret = "YOUR_API_SECRET_KEY"
$cloud_name = "YOUR_CLOUD_NAME"
Cloudinary.config do |config|
config.cloud_name = "#{$cloud_name}"
config.api_key = "#{$api_key}"
config.api_secret = "#{$api_secret}"
config.cdn_subdomain = true
end
Cloudinary::Api.delete_all_resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment