The aws cli tool doesn’t directly support wildcards, but there is a workaround with the
aws s3 rm s3://example-bucket/ --recursive --exclude="*" --include "blah*"
? are allowed, but so are regex-like
You can test by adding
--dryrun to make sure you got it right.