Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

aws cli delete multiple buckets

for bucket in $(aws s3 ls | awk '{print $3}' | grep my-bucket-pattern); do  aws s3 rb "s3://${bucket}" --force ; done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #aws #cli #delete #multiple #buckets
ADD COMMENT
Topic
Name
9+5 =