Skip to content

Commit

Permalink
Update DeleteAllS3BucketsIssue116.py
Browse files Browse the repository at this point in the history
1jc made minor correction to list buckets then delete buckets to update file "DeleteAllS33BucketIssue116.py"
  • Loading branch information
1jc authored Mar 17, 2022
1 parent 4eb4291 commit a8cb2b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devops/DeleteAllS3BucketsIssue116.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@

import boto3
client = boto3.client('s3')
response = client.list_buckets()
for name in response ['Buckets']:
print (name['Name'])

response = client.delete_buckets()
print(response)
print(response)

0 comments on commit a8cb2b5

Please sign in to comment.