Created
June 5, 2013 14:51
-
-
Save meeuw/5714445 to your computer and use it in GitHub Desktop.
remove files from cloudfiles container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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