I store many images in Amazon S3 using ruby ββlib ( http://amazon.rubyforge.org/ )
I donβt like photos older than 1 week, then to free up space in S3 I need to delete these photos.
I know that there is a method for deleting an object in a specific bucket:
S3Object.delete 'photo-1.jpg', 'photos'
Is there a way to automatically delete an image older than a week?
If this does not exist, I will have to write a daemon to do this: - (
thanks
UPDATE: it is now possible, check Roberto's answer.
ruby ruby-on-rails amazon-s3 amazon-web-services
Alessandro ds
source share