If you need to recursively delete all files in an AWS S3 bucket, then you can do the following:
aws s3 rm --recursive s3://your-bucket-name/foo/bar/
If you only want to delete an specific object from AWS S3:
aws s3 rm s3://your-bucket-name/foo/bar/item.txt