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 ?!
Advertisement
Answer
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.