Skip to content

Instantly share code, notes, and snippets.

@meeuw
Created June 5, 2013 14:51
Show Gist options
  • Save meeuw/5714445 to your computer and use it in GitHub Desktop.
Save meeuw/5714445 to your computer and use it in GitHub Desktop.
remove files from cloudfiles container
import cloudfiles
import sys
conn = cloudfiles.get_connection(
'username',
'apikey',
authurl=cloudfiles.uk_authurl
)
container = conn.create_container(sys.argv[1])
for obj in sys.argv[2:]:
print 'delete_object', obj
container.delete_object(obj)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment