concept Data & storage
Object versioning and delete markers
With Amazon S3 versioning enabled, a simple delete hides the object behind a current delete marker. Earlier data versions remain stored and can still be read by version ID if access permits.
What it means
In an Amazon S3 bucket with versioning enabled, a delete that names the object key but no version ID makes a delete marker the current version. The earlier data versions remain stored. Working with delete markers
The distinction is what a read selects. A GET by key alone selects the current version; it does not skip a marker to find the most recent data. A GET that names a retained data version can read that version’s body, provided the request has access. Delete marker behavior · How S3 Versioning works
Try it
The local simulation uses one key and illustrative version IDs. It sends no request to S3 and changes no stored object.
Object versioning and delete markers
Step through a scoped object-store timeline of puts, delete markers and explicit version selection; display visible current data and retained versions.
Local simulation only: no device, service, stored object or database is changed, and no real operation is authorized.
An unqualified GET sees the current delete marker, not an older object body (404).
Lookup selection is distinct from retained storage
- Selected version
- v3
- Modeled HTTP status
- 404
- Selected object body
- No data body
- Data versions still retained
- 2
| Version | Version kind | Data |
|---|---|---|
| v1 | data | a |
| v2 | data | b |
| v3 | delete-marker | No data body |
Evaluated evidence
- AWS S3 versioning state
- enabled
- Synthetic version timeline
- two-puts-delete
- GET version selection
- current
AWS S3 versioning-enabled example, not all S3-compatible providers. Permissions, encryption, retention, suspension and permanent version deletion are excluded. Version IDs are illustrative labels. No request is sent.
About this model
Every input is local synthetic evidence. Numbers stay as raw text until this model validates them. The shown evaluated values come from the same result as the explanation.
Presets replace the entire scenario. Reset restores all starting fields, scenario selection and model state; it does not change the open or closed state of this help or article FAQ.
No external request, device command, stored-input history or measurement is performed.
Start with AWS S3 versioning state set to enabled and Synthetic version timeline set to two-puts-delete. The first PUT stores a as v1; the second stores b as v2. The delete adds v3, a marker with no object body. That makes three version entries, but only two are data versions.
Keep the timeline fixed and change only GET version selection:
current: The GET encountersv3as the current version. The modeled result is 404 Not Found, with no object body. Current delete markerv1: The GET selects the first data version and returns 200 OK with bodya. Readingv1does not make it current. Retrieving a versionv3: The GET explicitly requests the same marker encountered in the first read. The result is 405 Method Not Allowed, not 404, and again there is no object body. Explicitly selected delete marker
For contrast, set the lookup back to current and choose delete-marker-then-put. A later PUT adds v4 with body c. The current GET now returns 200 with c; the marker is still in the timeline, along with all three data versions.
Selecting v4 on the shorter two-puts-delete timeline is an invalid input because that timeline has no v4. An unknown versioning state is different: the model lacks the evidence to predict a lookup result. Reset restores all three starting selections and clears the simulation history, comparison, and errors.
In practice
When interpreting a missing object, establish the provider and bucket versioning state, then check whether the GET named a version. This example assumes permitted reads. It does not evaluate permissions, encryption, lifecycle rules, retention locks, or permanent version deletion. Do not apply it to suspended versioning or assume another S3-compatible provider follows the same rules.
A 404 on the current GET answers a visibility question: no object body is available by key in this example. It is not evidence that the older bodies were erased. To determine what remains, distinguish the retained data versions from the marker that the current lookup selects.
Frequently asked questions
Editorial questions based on the listed sources and explicitly labeled local examples.
Are older versions removed by a simple delete?
Not in the versioning-enabled AWS S3 workflow modeled here. A simple delete adds a delete marker rather than removing the retained data versions.
Can a specific old version still be read?
A retained data version can be selected explicitly by its version ID, subject to the applicable permissions and other access conditions. The example assumes those conditions.
Why does an explicit marker request differ?
AWS S3 distinguishes the requests: an unqualified GET seeing a current delete marker returns 404, while GET explicitly selecting that marker version returns 405.
Does this cover every S3-compatible service?
No. This is an AWS S3 versioning-enabled example. Another provider or a suspended-versioning state needs its own documented rules.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- Amazon S3: Working with delete markers
Current versus explicitly selected delete marker. Unqualified GET against a current marker returns404; GET explicitly selecting the marker version returns405.
Checked .
- Amazon S3: How S3 Versioning works
Versioning workflows; retrieving object versions. Multiple versioned PUTs retain separate versions; an explicit version identifier selects a retained version under the applicable access conditions.
Checked .