Skip to content

Instantly share code, notes, and snippets.

@richleland
Created January 26, 2013 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richleland/4644059 to your computer and use it in GitHub Desktop.
Save richleland/4644059 to your computer and use it in GitHub Desktop.
import boto
conn = boto.connect_s3()
bucket = conn.get_bucket('some-bucket')
bucket.delete_keys(bucket.get_all_keys())
conn.delete_bucket('some-bucket')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment