1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
Contenus pertinents
- demandé il y a 9 mois
- demandé il y a 9 mois
- demandé il y a 10 mois
- demandé il y a 10 mois
- AWS OFFICIELA mis à jour il y a 7 mois
