Ability to delete all files with prefix in the S3 bucket

I have 100 files separated into two prefixes - ABC and XYZ. I want to remove all files (including the entire directory) from the XYZ prefix. I do not want to delete files using a JS loop manually.