Created
April 17, 2018 02:06
-
-
Save lmayorga1980/4cdcfe82db484e7a943c9f1137a4dc7a to your computer and use it in GitHub Desktop.
Remove S3 Bucket with Versions
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
BUCKET='<my_bucket>' | |
import boto3 | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket(BUCKET) | |
bucket.object_versions.delete() | |
bucket.delete() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment