s3cmd: searching for files based on extension and delete from bucket
===

I have a S3 bucket with thousands of folders and many txt files inside those folders. 

I would like to list all txt files inside the bucket so I can check if they're removable. Then remove them if they are. 

Any idea how to do this with s3cmd?