How can we set s3 lifecycle rule to delete the files form S3 bucket!


I am trying to delete files form my bucket as two .csv files will be pushed in my bucket daily and i want to delete both files after 14 or 16 hours, and next day the same activity will be repeated as 2 new files will be pushed and then deleted.

i think it only delete the files which get older then 24 hours if i am not wrong!

any suggestion please!!

asked 2 years ago554 views
1 Answer

Leverage a Lambda with scheduled Cron to run the S3 Delete API for the objects.

profile pictureAWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions