Delete objects
List objects with a match
aws s3 ls s3://mybucket/myfolder --profile prod | grep text_match
aws s3 ls s3://mybucket/myfolder --profile prod | grep text_match > to_delete
Delete single object
aws s3 rm s3://mybucket/myfolder/my_object --profile prod
Delete all objects given a text file containing their paths
for i in `cat to_delete`; do aws s3 rm s3://mybucket/myfolder/${i} --profile prod; done