Skip to content

When does S3 Noncurrent Version Expire After Deleting a Newer Version?

0
  1. Ingest an object 11/13/25 (v1)
  2. Ingest another version of the object 11/14/25 (v2) and set noncurrent bucket lifecycle rule to 1 day
  3. Ingest another version of the object 11/16/25 (latest) and version delete v2

Two versions of this object exists in the bucket, v1 and v3.

When does the noncurrent object (v1) expire?

I've tested this out and in theory, v1 is supposed to expire 11/16/25 midnight UTC, but it expired 11/18/25 around 11:30:00 UTC. Did it calculate the noncurrent expiration date based off of v3? Or was there just a big delay in removing that noncurrent object?

asked a year ago366 views

1 Answer
0

When working with S3 lifecycle rules for noncurrent versions, the expiration timing depends on when the object became noncurrent and how S3 processes lifecycle actions.

In your scenario:

  • V1 became noncurrent on 11/14/25 when V2 was created
  • V2 became the current version
  • On 11/16/25, V3 was created and V2 was deleted

When V2 was deleted, this didn't change the fact that V1 was already noncurrent. However, the NoncurrentVersionExpiration action is evaluated based on when an object becomes noncurrent and the specified NoncurrentDays value (1 day in your case).

There are two important factors to consider:

  1. S3 lifecycle actions occur asynchronously, so there can be a delay between when an object becomes eligible for expiration and when the actual deletion occurs. This is not an immediate process.

  2. Amazon S3 rounds the transition or expiration date to midnight UTC the next day. For example, if an object becomes eligible for expiration, the actual expiration process would begin after midnight UTC the following day.

The delay you observed (expiration on 11/18/25 instead of 11/16/25) is likely due to the asynchronous nature of S3 lifecycle actions. While the object may have been eligible for expiration earlier, the actual physical deletion can take additional time to complete. This is normal behavior for S3 lifecycle operations.

The expiration calculation would have been based on when V1 became noncurrent (11/14/25) plus your NoncurrentDays setting (1 day), but the actual deletion was delayed due to the asynchronous processing of lifecycle actions.
Sources
Troubleshooting Amazon S3 Lifecycle issues - Amazon Simple Storage Service
NoncurrentVersionExpiration - Amazon Simple Storage Service
Deleting object versions from a versioning-enabled bucket - Amazon Simple Storage Service

answered a year ago

EXPERT

reviewed a year ago

EXPERT

reviewed a year 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.