1 回答
- 最新
- 投票最多
- 评论最多
0
A simple shell script should work
List objects with storage class
aws s3api list-objects --bucket YOUR_BUCKET_NAME --query "Contents[?StorageClass=='STANDARD'].[Key]" --output text
Delete only standard class objects
aws s3api list-objects --bucket YOUR_BUCKET_NAME --query "Contents[?StorageClass=='STANDARD'].[Key]" --output text | xargs -I {} aws s3 rm s3://YOUR_BUCKET_NAME/{}
Please test before performing in your Bucket
相关内容
- 已提问 7 个月前
- AWS 官方已更新 10 个月前
