How to delete files older than 7 days in Amazon S3?


Need to delete files in Amazon S3 which is older than 7 days, need a shell script to do this, no luck with google search, i found the below url

it is not helpful to us, Does someone have script to delete all files older than 7 days?


Thanks, John

We have modified code little bit and it is working fine.

Leave a Reply