raphael_turtle
raphael_turtle

Reputation: 7314

Deleting old object versions on AWS S3

Is this the correct lifecycle rule to delete all old versions of objects from my bucket and only keep the current version?

Also will this work on my entire bucket or only on objects added to it?

enter image description here

Upvotes: 4

Views: 5446

Answers (1)

Michael - sqlbot
Michael - sqlbot

Reputation: 178956

Yes, that seems correct.

Note that "1 day after" literally means "during the first background purge operation that occurs at least 24 hours after," so objects may linger for anywhere between 24 and 48 hours. If there are a large number of objects, it will take longer, but you aren't billed for the time to store the objects past their expiration.

Upvotes: 7

Related Questions