Skip to content
Ylabator

No Training Is Not Zero Data Retention

A no-training clause governs one processing path. Abuse logs, stored state, files, batches, caches and your own logs each keep data on their own schedule.

Topics
Privacy Foundations
Level
Founder / builder
Read
5 min
Published
2026-11-12
Reviewed
2026-11-12
Week 2

The problem

In May 2025, a court order in the New York Times copyright case required OpenAI to preserve and segregate ChatGPT output logs that would otherwise have been deleted. OpenAI said the order reached ChatGPT Free, Plus, Pro and Team users, and API customers without a zero data retention agreement [1]. In January 2026, Judge Sidney Stein affirmed a separate order requiring OpenAI to produce a sample of 20 million de-identified ChatGPT logs to the plaintiffs [2].

None of this turned on training. Whether or not those conversations were used to improve a model, they existed in storage, and stored data can be preserved, subpoenaed and produced. Among the customers outside the order were API users under zero data retention, whose prompts and outputs were never stored in the first place [1].

Founders often read "your data is not used for training" as "your data is not kept." Those are two different promises. Training use is one processing path. Abuse monitoring, stored conversation state, uploaded files, batch jobs, prompt caches and your own application logs are others, and each has its own retention schedule.

A helpdesk app that sends tickets to a model under a no-training contract can still keep every prompt in its own trace database and every attachment in a vendor upload store. The contract is honored, and the data is everywhere.

How it works

A request can persist in two places: inside your application and inside the model provider. The diagram for this article splits them.

Your application holds application state (conversation history, prompts kept in a trace database), files (uploads held in a vendor upload store), and tool logs (payloads recorded by integrations). None of these is covered by any provider agreement. They follow whatever retention your code and your vendors set.

The model provider has at least three paths. Training use is excluded under no-training terms. Temporary retention, such as abuse monitoring, is a separate path: OpenAI keeps abuse monitoring logs for up to 30 days unless the customer is approved for modified abuse monitoring or ZDR [3]. Stateful features keep data by design: OpenAI's Files, vector stores, fine-tuning jobs and batches are kept until deleted and are not ZDR eligible [3]. Anthropic's Batch API retains data for 29 days, and its Files API keeps files until they are deleted or expire [4].

Some retention cannot be switched off by contract. Anthropic may retain inputs and outputs of a flagged session for up to 2 years, whatever the arrangement [4]. Google keeps logs for Grounding with Google Search for 3 days, with no way to disable them [6].

Under all of this sit backups, on their own schedule, which you confirm with each vendor in writing.

The cloud platforms add one more path that belongs to you. Bedrock's model invocation logging, once enabled, captures full request and response bodies and stores them until the logging configuration is deleted [5]. A zero-retention setting at the model does nothing about a log you write yourself.

Eligibility is granular. As documented in November 2026, OpenAI's ZDR treats the store parameter as false on Responses and Chat Completions [3], Anthropic enables ZDR per organization [4], and Bedrock sets retention per Region and per project [7]. A no-training clause is a statement about one path. A retention review has to name every path.

Where a request can persist

Fig. 02
Your application
Application statePrompts kept in your own trace database
FilesUploads held in a vendor upload store
Tool logsPayloads recorded by integrations
Model provider
Training useExcluded under no-training terms
Temporary retentione.g. abuse monitoring, a separate path
Batch jobs and filesRetention set per API feature
Backup retentionIts own schedule. Confirm with each vendor.
Contractual data controlsScope written per feature, not per brand
A no-training clause governs one processing path. Choosing a zero-retention API does not make the application zero-retention: your own state, files and logs keep their own schedules.
Technical detail

ZDR eligibility may depend on account, workspace and API feature. Record contract scope and explicit deletion interfaces per model, endpoint, logging flag, feature and region.

A deletion test can verify accessible storage after the documented period. It does not prove hidden provider copies are empty.

By the numbers

de-identified ChatGPT logs ordered produced in the New York Times case [2]
20 million
OpenAI abuse monitoring log retention without ZDR or modified monitoring [3]
up to 30 days
Anthropic Batch API retention, a feature outside ZDR [4]
29 days
Anthropic retention of flagged sessions, under any arrangement [4]
up to 2 years
Vertex AI log retention for Grounding with Google Search, not configurable [6]
3 days
FeatureProviderRetention
Responses API, store true or defaultOpenAI30 days by default
Prompt cachingOpenAIUp to 24 hours on GPU-local storage
Files, vector stores, batchesOpenAIUntil deleted
Batch APIAnthropic29 days
Code execution containersAnthropicUp to 30 days
Model invocation logging, when enabledAmazon BedrockUntil the logging configuration is deleted
Grounding with Google SearchGoogle Vertex AI3 days, cannot be disabled
Retention by feature, as documented by each provider in November 2026 [3][4][5][6]

Look at which rows last longest. Several of the open-ended copies are ones the customer turned on: invocation logs, stored responses, uploaded files. Most provider-side windows are documented and bounded. The application-side windows last as long as nobody decides otherwise.

The table also shows why a single "ZDR: yes" is not an answer. Each row is a feature a developer can add in an afternoon, and adding it changes where the data lives.

Implementation

Build a retention matrix with one row per model, endpoint, feature, logging flag and region. For each row record the contract scope, the retention window, the deletion interface and the owner. Keep application retention and provider retention in separate columns, because they are controlled by different people.

Then make the application side match the matrix. Two defaults do most of the work: ask the provider not to store state you do not need, and log facts about requests rather than their content.

llm_client.pypython
"""Minimal-retention wrapper: no stored state at the provider, no prompt text in our logs."""
import hashlib
import logging
import os
import time

from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY
MODEL = os.environ["OPENAI_MODEL"]  # pinned per environment, recorded in the matrix
log = logging.getLogger("llm")


def ask(prompt: str, tenant_id: str) -> str:
    started = time.monotonic()
    resp = client.responses.create(
        model=MODEL,
        input=prompt,
        store=False,  # do not keep the response for later retrieval
    )
    # Log metadata only. A hash lets us match a canary later without keeping text.
    log.info(
        "llm_call",
        extra={
            "tenant": tenant_id,
            "model": MODEL,
            "response_id": resp.id,
            "prompt_sha256": hashlib.sha256(prompt.encode()).hexdigest(),
            "input_tokens": resp.usage.input_tokens,
            "output_tokens": resp.usage.output_tokens,
            "ms": int((time.monotonic() - started) * 1000),
        },
    )
    return resp.output_text

store=False controls one feature on one endpoint. It does not change abuse monitoring, which needs an approved arrangement with the provider [3]. On Bedrock, the equivalent control is the account or project retention mode, and an organization can lock it with a service control policy on the bedrock:DataRetentionMode condition key [7]. Write the policy, apply it to every account, and record it in the matrix.

Treat files and batches as storage you are choosing to create. If a workflow needs the Files API or a batch job, give it a deletion step in the same code path, and log the deletion.

Test it

Settings you can read back are evidence. Check them on every deploy, in every Region you use, and fail the pipeline when one drifts.

retention_settings_check.shbash
#!/usr/bin/env bash
# Verify Bedrock retention mode and invocation logging in every Region we serve from.
set -euo pipefail
REGIONS=("us-east-1" "us-west-2" "eu-central-1")
fail=0

for region in "${REGIONS[@]}"; do
  # Account-level retention mode for bedrock-runtime (control plane API).
  mode=$(curl -s "https://bedrock.${region}.amazonaws.com/data-retention" \
    -H "Authorization: Bearer ${AWS_BEARER_TOKEN_BEDROCK}" | jq -r '.mode')
  if [[ "$mode" != "none" ]]; then
    echo "FAIL ${region}: data retention mode is '${mode}', expected 'none'"
    fail=1
  fi

  # Invocation logging keeps full prompts until the configuration is deleted.
  text_logging=$(aws bedrock get-model-invocation-logging-configuration \
    --region "$region" --query 'loggingConfig.textDataDeliveryEnabled' --output text)
  if [[ "$text_logging" == "True" ]]; then
    echo "FAIL ${region}: invocation logging stores prompt text"
    fail=1
  fi
  echo "checked ${region}: mode=${mode} text_logging=${text_logging}"
done

exit "$fail"

Expected result: every Region prints mode=none, and text logging reads None or False. A Region you have never configured reads inherit and falls back to each model's default [7], so it fails, which is the point.

Then run a deletion check per feature:

  • Send a synthetic value through each feature in the matrix: a chat, a file upload, a batch job, a stored response.
  • Delete each one through the documented interface.
  • After the documented window, search every store you can reach: your trace database, the provider's file and response listings, your log groups.
  • Record hits and misses with timestamps. A miss proves the accessible copy is gone. It does not prove that provider-side backups or flagged-content stores are empty.

Decision

Replace "does the AI train on our data?" with "which component stores this data, and for how long?"

  • Keep a retention matrix per model, endpoint, feature and Region. Review it on every model upgrade, because newer models have arrived with their own retention requirements.
  • Default to store=False or the equivalent, and log hashes and token counts instead of prompt text.
  • On Bedrock, set retention to none in every Region you use and lock it with a service control policy. Check invocation logging on every deploy.
  • Ask each vendor for its feature-by-feature retention table. A vendor that cannot produce one has not mapped its own system.

The cost is a few days to build the matrix and the checks, then an hour per model change.

Sources

  1. [1]How we're responding to The New York Times' data demands in order to protect user privacy (opens in a new tab)OpenAI, June 2025
  2. [2]ChatGPT creator must turn over 20M chat logs in copyright litigation, federal judge says (opens in a new tab)ABA Journal, January 2026
  3. [3]Data controls in the OpenAI platform (opens in a new tab)OpenAI, November 2026
  4. [4]API and data retention (opens in a new tab)Anthropic, November 2026
  5. [5]Monitor model invocation using CloudWatch Logs and Amazon S3 (opens in a new tab)Amazon Web Services, November 2026
  6. [6]Vertex AI and zero data retention (opens in a new tab)Google Cloud, November 2026
  7. [7]Data retention, Amazon Bedrock User Guide (opens in a new tab)Amazon Web Services, November 2026

Technical guidance, not security certification or legal advice.

All Private AI articles