﻿# S3 noncurrent expiration can require both age and newer-version count

NoncurrentVersionExpiration combines time since a version became noncurrent with an optional newer-version threshold. Creation age alone cannot predict eligibility.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/s3-noncurrent-expiration-age-count-conditions/
Language: en

## An old version is not necessarily eligible

A retention inventory finds an old checkpoint object version still present after the configured number of days. The operator assumes lifecycle processing failed. The rule also retains a number of newer noncurrent versions, and the candidate has not yet crossed that threshold.

The [lifecycle-rule reference](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) states that both configured noncurrent-age and newer-version conditions must be exceeded before deletion. Reading one field without the other produces a different policy from the one the service evaluates.

## Start the age clock at the right event

Noncurrent age starts when a successor makes the version noncurrent, not when the version was originally created. A long-lived current object can therefore become a young noncurrent version after replacement. Preserve that transition in the version history.

The documented calculation uses the successor's creation time and the specified days, rounded according to the service's lifecycle rules. A hand-built comparison against the candidate's original creation timestamp can predict deletion too early even when the number of days is copied correctly.

## Count the right versions

The [API reference](https://docs.aws.amazon.com/AmazonS3/latest/API/API_NoncurrentVersionExpiration.html) defines the newer noncurrent versions to retain. Distinguish current data, noncurrent data and delete markers rather than treating every listing entry as an equivalent retained checkpoint. Preserve version identifiers and the ordering evidence used for the candidate.

The rule's filter and enabled status also matter. The documentation requires a filter when configuring the newer-version count. A syntactically rejected or disabled policy is different from an active policy whose candidate has not met both conditions.

## Separate eligibility from actual removal

The [expiration considerations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-expire-general-considerations.html) distinguish current-version expiration from permanent removal of noncurrent versions. Current expiration can create a delete marker while retaining older data. It does not demonstrate that all checkpoint bytes were reclaimed.

Other retention and replication conditions can affect action. Inspect the actual version's Object Lock and replication state where applicable. Once a version is permanently deleted, it is not recoverable through that version identifier; an eligibility review must therefore remain read-only until retention intent is confirmed.

## Acceptance for a retention explanation

For a known version fixture, record original creation, noncurrent transition, newer-version population, complete matching rule and observed service state. Include a case that satisfies only age and a case that satisfies both configured boundaries. The explanation should predict eligibility, then separately reconcile eventual deletion evidence.

[Version identity](/journal/guide-storage-object-version-id/) explains why the key alone cannot identify the candidate. [Listing completeness](/journal/guide-storage-object-list-pagination/) explains the pagination needed to avoid counting only a partial version population.

## Bound the policy claim

This article concerns the documented general-purpose-bucket action, not a universal lifecycle contract for every S3-compatible service or bucket type. It does not promise exact deletion timing or legal sufficiency of retention. The useful result is a reproducible eligibility decision that preserves the difference between an old object, an old noncurrent version and a version beyond both configured thresholds.
