Skip to content

Instantly share code, notes, and snippets.

@davidklaw
Created August 21, 2013 18:53
Show Gist options
  • Save davidklaw/6298629 to your computer and use it in GitHub Desktop.
Save davidklaw/6298629 to your computer and use it in GitHub Desktop.
Ruby script for clearing out CloudApp uploads.
# gem install cloudapp_api
require 'cloudapp_api'
def delete(drops)
drops = CloudApp::Drop.all
drops.each do |drop|
puts "Deleting #{drop.url}"
drop.delete
end
@drops = CloudApp::Drop.all
if @drops.length > 0
delete(@drops)
end
end
CloudApp.authenticate "USERNAME", "PASSWORD"
@drops = CloudApp::Drop.all
delete(@drops)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment