Skip to content

Instantly share code, notes, and snippets.

@bruceherve
Created June 16, 2023 09:59
Show Gist options
  • Save bruceherve/6a1b08f74e9e28e80e97438e4feb970f to your computer and use it in GitHub Desktop.
Save bruceherve/6a1b08f74e9e28e80e97438e4feb970f to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import boto3
s3 = boto3.resource('s3')
bucket = s3.Bucket('teracar-bucket')
bucket.object_versions.all().delete()
bucket.delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment