In this article
A successful unversioned-key DELETE in a versioned bucket can create a current delete marker while older object versions remain addressable.
Resolve bucket versioning before interpreting DELETE
The DeleteObject API changes behavior with bucket versioning. Without versioning it removes the object; with versioning enabled, a request without versionId creates a current delete marker. With versioning suspended, a null-version object has special treatment, while named historical versions can remain. A proposed client therefore records the bucket mode and requested version selector before interpreting success. The same method and key do not describe the same storage transition in every bucket.
Distinguish a marker from a historical payload version
The delete-marker guide describes a marker as a versioned placeholder without payload data. It has a key and version identity, but is not an empty copy of the original file. Deleting a specific version through versionId targets that version, including a marker when its identity is selected. An editorial receipt should name which transition occurred rather than summarizing both cases as all data removed. This is API response interpretation, not a claim about copies outside the bucket.
Read subsequent GET results with their version selector
The guide distinguishes a current-key GET returning 404 when the current version is a marker from an explicit marker-version GET returning 405. Both can carry x-amz-delete-marker: true. The GetObject reference separately defines reading a specified object version and the permissions involved. A proposed probe records method, versionId, status and marker metadata together; a lone status code cannot establish which historical payload versions are still retrievable.
Keep permission failures distinct from absence
GetObject documents that an unavailable object can produce different error status depending on ListBucket permission. This prevents an application from universally treating every 403 as an existing-but-forbidden payload or every observed failure as proof of deletion. Preserve the response and the request’s version context. A read-only review of recorded responses can identify ambiguity without trying destructive requests or inferring broader account permissions from one result.
Use a version-aware inventory for reconciliation
The marker guide points to ListObjectVersions for markers and historical versions; ordinary object listing does not expose the same inventory. A proposed reconciliation compares the intended version identity with a version-aware record rather than only checking whether the current key appears. Artifact identity records explain preserving exact objects, while contract fixtures support distinct marker and version-response cases. This guide performs no deletion and does not treat current-key invisibility as evidence of complete erasure.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.