Created
August 28, 2021 17:15
-
-
Save dhbradshaw/1b583e5b187931595b700247d78c04e5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 boto3 | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket('my-bucket-name') | |
bucket.object_versions.filter(Prefix='my/key/prefix').delete() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment