﻿# An accepted S3 batch delete can still leave individual objects

A practical investigation of an accepted S3 batch delete can still leave individual objects, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-sovereign-s3-batch-delete-per-object-result-ledger/
Language: en

## The deployment scenario

A private document cleanup job sends a batch removal request and records the entire batch as complete when the HTTP exchange succeeds. Some entries may lack deletion permission while others succeed. The problem is an incorrect completion ledger: one transport-level observation has been expanded into a claim about every requested object. A privacy workflow needs item-level outcomes without confusing them with broader physical erasure guarantees.

## The data and control mechanism

S3 DeleteObjects reports individual outcomes and supports verbose and quiet responses. Quiet mode omits successful entries and retains errors. The documented examples include a successful HTTP response containing an item-level denial. S3 also reports a nonexistent requested object as deleted, so the response does not prove that bytes existed immediately before the request. Error codes support classification of the failed entries rather than a single batch-wide boolean.

## Define the intended boundary

Define the requested set before sending it, with bucket, exact key and optional version identity where applicable. Preserve the response mode and correlate returned failures with that set. In quiet mode, absence of an error has meaning only after a successfully parsed, complete response to the intended request. A truncated body, parser failure or unknown response must remain unresolved rather than being interpreted as an empty error list.

## A step-by-step review

First review the client adapter’s response parser and its ledger update transaction. Supply synthetic verbose and quiet responses containing mixed outcomes, a missing-object success and a malformed response. Verify that only confirmed entries advance and that failures retain their exact identity and error category. Review retry selection separately: it should not discard denied entries or substitute a key-only request for a version-specific request because the simplified retry happens to succeed.

## Evidence required for acceptance

Acceptance requires reconciliation of the input manifest with successes, known failures and unresolved outcomes. Keep request identifiers and bounded error details without copying confidential document bodies into logs. A negative case must leave a deliberately denied entry incomplete. After retry, preserve the relationship to the original identity and evidence rather than overwriting the history with a final green batch status. This makes later review possible when partial failure has operational consequences.

## Failure cases and limits

A complete API ledger is still limited to the requested objects and operation semantics. It does not establish removal of replicas, old versions not requested, caches or derived embeddings. Retention controls may intentionally prevent an operation and should not be bypassed as a routine retry strategy. The protocol improves correctness of the claimed item-level result; it does not certify universal erasure or settle legal deletion obligations.

## Primary references and related reading

Parse per-object errors and reconcile the requested identities; a successful batch transport status is not a complete deletion result. [S3 multi-object delete per-item results and quiet mode](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html); [S3 structured error codes for per-object outcomes](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Error.html).

The proposed investigation of s3 batch delete per object result ledger is a proposed technical boundary review; no production workload or private data was used. Related reading: [Dataset removal lineage: references, cached objects and versioned storage](/journal/data-guide-dataset-removal-lineage-tombstone/); [Pin object version identities in a model manifest](/journal/guide-storage-object-version-id/).
