user14577547
user14577547

Reputation:

How to delete files automatically after one month?

I'm using S3 as a storage for my files and I have some files I need to delete them after like one month!

I know I have to use laravel scheduler but these files that I need to delete is not store in database to just delete them!

So is there any to delete the files in the bucket based on the date of create this file ?!

Upvotes: 0

Views: 1215

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269101

You can configure Object lifecycle management - Amazon Simple Storage Service on the Amazon S3 bucket.

This includes the ability to 'expire' (delete) objects after a given period of time.

Upvotes: 1

Related Questions