@benguild: The official homepage of Ben Guild.

How to delete all files in an Amazon S3 bucket, easily.

08 Nov 2012  |  Tags: , ,

There’s a really annoying problem with Amazon S3 (Simple Storage Service), and it’s that once you get files there it’s equally inconvenient to delete them.

Luckily, finally, there is a way to wipe out an entire bucket of stuff without using any third-party software.

Edit the bucket’s properties, and select the “Lifecycle” tab. Create a blank rule, with a 1 day expiration date. A warning will appear when you save, stating that this “blank” rule will apply to all files.


Within the time you specify (in our case … 1 day), all items in the bucket will be purged automatically and the bucket can be removed. Phew!

Comments are in a testing stage. Enabled since 2013/09/09.