Skip to content

Instantly share code, notes, and snippets.

@fernandoflorez
Created September 14, 2013 15:50
Show Gist options
  • Save fernandoflorez/6563083 to your computer and use it in GitHub Desktop.
Save fernandoflorez/6563083 to your computer and use it in GitHub Desktop.
import pyrax
if __name__ == '__main__':
pyrax.set_setting('identity_type', 'rackspace')
pyrax.set_credentials('username', 'api_key')
cf = pyrax.cloudfiles
container = cf.get_container('container_name')
objects = container.get_objects(full_listing=True)
for obj in objects:
obj.delete_in_seconds(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment