Deleting S3 files with a given prefix only
You can use
aws s3 rm command using the
--exclude parameters to specify a pattern for the files you'd like to delete.
So in your case, the command would be:
aws s3 rm s3://bucket/ --recursive --exclude "*" --include "abc_1*"
which will delete all files that match the "abc_1*" pattern in the bucket.
The behavior of these parameters is documented here
These instructions assume you have downloaded, installed and configured the AWS CLI tools