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

0

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 ago526 views
1 Answer
0

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

profile pictureAWS
EXPERT
Rob_H
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