I have the following folder structure in S3. Is there a way to recursively remove all files under a certain folder (say foo/bar1 or foo or foo/bar2/1 ..)
foo/bar1 or foo or foo/bar2/1
With s3cmd package installed on a Linux machine, you can do this
s3cmd
s3cmd rm s3://foo/bar --recursive