Zero Labs
Industry News / AI

Forget Me: Deletion in a System Designed to Remember

Source · Towards AI By Shrashti Singhal

From the publisher’s feed, collected in the ZeroLabs newsroom.

GDPR and DPDP against vector stores, traces, checkpoints, and derived summaries — the deletion graph nobody drew.Image 01: Forget Me: Deletion in a Data Network (image by author)The erasure request, in this composite assembled from several teams’ incidents, was handled by the book. A customer invoked their right to be forgotten; the privacy team routed the ticket; engineering deleted the user’s account row, their conversation history, and their support tickets, and closed the request inside the statutory window with a confirmation email that said, in the gentle language of these things, that their personal data had been removed from the company’s systems.Three weeks later, a different customer asked the support agent a routine question about a billing edge case, and the agent — reaching, as it was built to, into its memory of similar past cases — answered helpfully and included the sentence: “This matches a case we resolved last month for a customer at [the erased person’s employer], who had the same plan conflict after switching from [their previous provider].”The conversation was deleted. The memory of the conversation was not. It lived in a “similar cases” summary the agent had written for itself back when the conversation happened — a derived artifact, generated by the memory system, embedded into a vector store, retrievable by similarity, attached to no deletion routine, indexed under no customer ID, and now surfacing the deleted customer’s employment history to a stranger. When the team went looking, they found the fact in four more places they hadn’t checked: a compaction summary inside an old run’s checkpoint, a semantic-cache entry still serving an answer built on the deleted conversation, an eval dataset that had been mined from production traces two quarters earlier, and every nightly backup taken since.Here is the thesis of this article: a modern agent system never stores a fact once — it stores it many times, under many names, in stores with different owners and different delete buttons — and “deleted” is only true when it’s true for the whole set. Deletion is not an operation. It’s a graph traversal. The graph is the set of everything derived from the original — summaries, embeddings, checkpoints, caches, memories, eval sets, model weights, backups — and almost nobody has drawn it, which is why almost every erasure in an agent system today is partial and almost nobody knows it.This is the sixteenth article in When Agents Meet Reality, the series that follows The Harness Is the Product, and it opens a new territory: law, records, and what your system can prove. The previous piece established that compaction is a lossy bet and taught you to preserve information against accidental loss. This one is the mirror image — the engineering of losing information on purpose, completely, and provably, in a system whose every reflex is to keep.Part 1: Why Agents Multiply Copies — The Write-Path Fan-OutClassical applications had a deletion story because they had a storage story: the user’s data lived in rows, the rows had foreign keys, and ON DELETE CASCADE was somebody's job. It was never quite that clean — logs and backups complicated it even then — but the mental model held: data lived in one place, deletion happened there.An agent system breaks the model on the first turn, because an agent’s architecture is, top to bottom, a machine for making derived copies. Follow one customer conversation through a production agent and count the writes. The conversation itself lands in the application database — copy one. The trace records the full run — every prompt, every tool result, every model response, which is to say the conversation again, plus its surroundings — copy two, in a different store, with a different owner. The run checkpoints after each step so it can resume, and a checkpoint is a photograph of the entire context window at that moment — copies three through N, one per step, each containing the conversation as of that turn. The context gets compacted and the summary — which, done well, preserves exactly the identifiers and specifics the last article told you to protect — goes into the checkpoint stream too. The memory system extracts durable facts (“customer X works at Y, migrated from Z, prefers annual billing”) and writes them where future runs can find them. Those memories, and often the conversation chunks themselves, get embedded and pushed into a vector index. The final answer may be written into a semantic cache so a similar future question skips the model. A trace this interesting has decent odds of being mined into an eval dataset — the series has been telling you to do precisely that since article six. And beneath all of it, backups copy every one of these stores on their own schedules.That’s the fan-out, and notice what produced it: not carelessness — the best practices of this series. Trace everything. Checkpoint everything. Remember across sessions. Cache what’s expensive. Build evals from production. Every one of those is right, and every one of them is a place personal data now lives. The architecture that makes an agent good is an architecture that makes forgetting hard. Nobody designed the copies to be findable later because nobody was thinking about the day someone would ask for them all back.The law, meanwhile, thinks in exactly the terms the architecture ignores. (A caveat before the tour: I’m an engineer describing the legal landscape as it bears on system design, not a lawyer giving advice — scope your actual obligations with counsel.) GDPR’s Article 17 gives EU data subjects a right to erasure “without undue delay,” and its storage-limitation principle separately requires that personal data not be kept longer than its purpose justifies — deletion isn’t just something users request; it’s something the regulation expects you to be doing by default as purposes expire. India’s DPDP Act and its 2025 Rules build the same skeleton with local additions that matter operationally: data must be erased once its purpose is served unless a statute says otherwise, sector rules pin retention elsewhere (banking regulators want years, not days), penalties for deletion failures run to ₹50 crore, and — the detail that surprises every engineering team — certain erasures require notifying the data principal at least 48 hours before the data is deleted, which means your deletion pipeline needs a scheduled-and-notified state, not just a delete verb. Neither regime has a carve-out that says “unless the data is in a vector index, in which case never mind.” The obligation attaches to the fact, wherever it flowed.Part 2: The Deletion Graph — Where the Copies Hide and Why Each One Fights BackDraw the graph for one fact and the problem gets shape. Nodes are stores; edges are derivations; the thing you must delete is the closure — the original plus everything reachable from it. Each node resists differently, and it’s worth knowing exactly how.The vector index resists physically. Graph-based ANN indexes like HNSW don’t remove vectors on delete — they tombstone them: the node stays in the graph, keeps participating in traversal so connectivity survives, and gets filtered from results at query time. The vector — which is to say the data — remains in memory and on disk until a compaction or rebuild actually reclaims it. Two consequences follow. First, your erasure isn’t real until compaction runs, so your compliance window has to be longer than your compaction interval — or your compaction interval has to shrink. Second, recall drifts as tombstones accumulate, because the graph still routes through the dead — deletion debt degrades search for everyone. And before anyone suggests the embeddings don’t count as personal data because they’re “just numbers”: embedding inversion is a demonstrated attack class — for face embeddings, inversion can reconstruct an image recognizable as the same person, and text embeddings leak their contents under similar treatment. Regulators have noticed. Treat the vector as a copy of what it encodes, because that’s what it is.The summary resists semantically. This series has met the launderer twice — inference restated as fact, doubt shed in the retelling. Deletion meets its cousin: a summary derived from a conversation contains the conversation’s facts with none of its metadata. The row had a customer ID; the summary of the summary of the run that touched the row says “a customer at [employer]” in free text, keyed by nothing. String matching won’t find it reliably; the fact may be paraphrased, translated, or merged with three other cases. This is the hardest node in the graph, and the cold open’s resurrection came from exactly here.The checkpoint resists by being a snapshot. A checkpoint isn’t a record about the run; it’s the run’s entire context, frozen — which makes every checkpoint a full copy of everything the context held at that step, including the conversation you deleted from the database. Runs that ended months ago sit in checkpoint storage as perfectly preserved amber. Durable execution made the run immortal; nobody asked what else became immortal with it.The cache resists by serving. A semantic cache entry built from the deleted conversation doesn’t just retain the data — it actively redistributes it to whoever asks a similar question. The last article in the change-management theme called the cache an amplifier for wrong answers; it amplifies deleted ones just as cheerfully. A deletion that skips the cache isn’t partial; it’s ongoing disclosure.The eval set resists by having left the building. Traces mined into eval datasets get copied into new repos, downloaded to laptops, baked into CI fixtures, shared with the vendor doing your judge calibration. This edge of the graph crosses organizational boundaries, which is precisely where closures stop closing.The backups resist by design. Backups exist to resurrect state; deletion asks them not to. A restore that faithfully brings back last month’s database brings back last month’s deleted users — the un-deletion nobody ordered. Regulators have generally been pragmatic here (the UK ICO’s long-standing concept: data in backups may be “put beyond use” pending overwrite, provided it’s never restored into live processing without the deletion being reapplied) — but “reapplied on restore” only works if reapplication is a real, owned, tested step in your restore runbook, not a sentence in a policy document. A deletion log that outlives the backup cycle, replayed after every restore, is the difference between a compliant backup strategy and a resurrection machine.And the model resists by being a model. If personal data flowed into fine-tuning, it may now be in weights, and the two most interesting regulators in the field currently disagree about what that means. Hamburg’s DPA argued in a July 2024 discussion paper that LLM weights do not “store” personal data in the GDPR sense — tokens and embeddings in the parameters aren’t records about identifiable people, so subject rights attach to the model’s inputs and outputs, not the artifact itself. The EDPB’s Opinion 28/2024, that December, declined to be so comforting: models trained on personal data are not automatically anonymous; it’s a case-by-case assessment of whether data can be extracted by attacks like model inversion, and supervisory authorities can order remedies up to dataset deletion or destruction of the model. The safe engineering posture doesn’t require picking a winner: keep identifiable data out of weights — fine-tune on redacted or synthetic corpora, source few-shots from templates rather than real customers — so the question stays academic for your system.Image 02: One fact, eleven homes (image by author)Part 3: Engineering Forgetting — The Honest VersionThe fixes fall out of the graph, and the first one is the one that makes all the others possible.Key every write to its subjects. The reason the cold open’s team couldn’t find the fact is that the derived artifacts weren’t addressable — the summary knew about the customer, but nothing knew the summary did. The single highest-leverage change: every artifact your harness writes — trace, checkpoint, summary, memory, embedding, cache entry — carries the subject identifiers of the people whose data it contains, as queryable metadata. For direct copies this is bookkeeping. For derived artifacts it’s a discipline: the summarizer’s output schema (you have one — the last article insisted) includes a subjects field; memory extraction tags each memory with the principals it concerns; the cache key's scope partitions already carry the user. Provenance metadata is what converts "search everything for a name and pray" into "SELECT WHERE subject_id = X" — deletion becomes a query instead of an investigation.Partition where you can — erasure by namespace. The strongest version of subject keying is physical: one namespace, collection, or prefix per principal in every store that supports it. A per-user namespace in the vector index makes erasure a namespace drop — no tombstone accumulation, no cross-user compaction dependency. Per-user memory scopes and per-user cache partitions do the same. This isn’t always possible — shared artifacts (the “similar cases” summary genuinely spans customers) resist partitioning — but the split clarifies the work: partitioned data deletes trivially; shared derived artifacts are the real deletion engineering, and now they’re a small, enumerable set instead of everything.Don’t write what you’d have to delete. The cheapest node in the deletion graph is the one that doesn’t exist. Redact at ingestion — scrub PII from traces before they land in the observability store, not after (the flight recorder article said this for security reasons; add legal ones); write memory as roles and patterns rather than identities where the identity does no work (“enterprise customers on legacy plans hit this conflict” retrieves just as well as the version with the employer’s name in it); and let TTLs do silently what erasure requests do loudly. A trace store with a 90-day retention policy has a bounded deletion graph by construction; one with infinite retention has an unbounded one. Retention-as-default-deletion is the storage-limitation principle implemented as configuration — and it’s also, not incidentally, the context-hygiene and cost posture this series has been recommending from the start.Sweep the closure, and re-derive what must survive. The deletion operation itself: walk the graph from the subject keys, delete the direct copies, and for shared derived artifacts, regenerate rather than redact — delete the source segment from the archive, then re-summarize the survivor set from the originals, exactly the machinery the compaction article built for fidelity, now doing double duty for erasure. A summary you edit in place to remove one customer is a summary you’ve corrupted with unknown confidence; a summary regenerated from the remaining sources is simply true again. This is the deletion-graph payoff of re-summarize-from-original: if you can always rebuild derived artifacts from sources, then deletion only ever has to happen at the sources, and everything downstream follows by regeneration.Then prove the absence. The omission article built machinery for detecting what an agent didn’t do; deletion verification is that machinery pointed at data: after the sweep, probe. Run the similarity searches that used to surface the deleted person — filters wide open, against the same read path production uses. Query the derived-artifact stores by the subject key. Ask the agent itself the questions most likely to resurface the fact — the cold open’s failure was discoverable in one conversation, three weeks before a customer discovered it instead. Vector counts that didn’t decrease mean tombstoning, not deletion — re-check after compaction, because the delete call returning 200 means almost nothing. Log every probe and its result, because that log is your evidence. And mind what the evidence contains: a deletion certificate that records “deleted all data for [full name, email, employer]” has just become the newest node in the graph — the tombstone that names the deceased. Deletion records reference opaque subject IDs and hashes, never the substance they memorialize.Image 03: The deletion sweep (image by author)Part 4: Advanced — Holds, Weights, and the Day Two Laws CollideLegal hold is deletion’s evil twin, and you need both. In May 2025, a magistrate judge in the New York Times’ copyright suit against OpenAI ordered the company to preserve and segregate all ChatGPT output logs “that would otherwise be deleted” — including chats users had explicitly deleted, including data GDPR’s Article 17 would normally require erased. OpenAI publicly objected, notified EU users it was invoking Article 17(3)’s legal-claims exemption, and spent months under an obligation that directly contradicted its published deletion promises; the indefinite hold ran until late September 2025, and that November the court ordered production of 20 million de-identified consumer conversations for infringement analysis — over OpenAI’s argument that the overwhelming majority were irrelevant and that de-identification can’t survive the contextual clues inside free text. Set the copyright merits aside entirely; the engineering lesson is structural. The same store received two lawful, contradictory instructions: delete on request, and preserve everything. If your deletion pipeline can’t represent “this subject’s erasure is suspended for matter #X, and resumes when the hold lifts,” you’ll improvise it during litigation, which is the worst possible moment. A hold is a first-class object: scoped to a matter, stamped on the artifacts it freezes, gating the sweep, logged with the same rigor as the deletions it postpones — and its scope matters as much as its existence, because a hold that freezes everything forever is just deletion failure wearing a court order.The regulators have started deleting models, so the graph really does extend into weights. The FTC’s remedy of “algorithmic disgorgement” — destroy not just unlawfully collected data but everything trained on it — has moved from novelty to pattern: Cambridge Analytica (2019, the first order — algorithms and equations derived from improperly obtained data); Everalbum (2021 — deletion of “Affected Work Product,” models and algorithms built on photos users hadn’t consented to, within 90 days, with the successor company later confirming the deletion happened); WW/Kurbo and Edmodo (children’s data); Rite Aid (2023 — facial-recognition data and “any data, models, or algorithms derived in whole or in part therefrom”). The doctrine’s reach is contested and its future enforcement posture uncertain — but the design consequence isn’t: train-data provenance is deletion infrastructure. If you cannot answer “which models and derived artifacts did this dataset touch?”, you cannot comply with a disgorgement order except by destroying everything — the graph, again, this time with model checkpoints as nodes.Machine unlearning is real research and mostly unshippable hope. The academic field has two branches. Exact unlearning — SISA-style training, where data is sharded and sliced so that forgetting a record means retraining only the shard that contained it — provides a genuine guarantee at the price of an architecture chosen before training and degraded economics at LLM scale. Approximate unlearning — gradient-based updates that suppress the influence of forgotten data — is cheaper and offers no guarantee a regulator would recognize, with a growing literature on how “unlearned” facts get recovered by determined prompting. For production agent systems in 2026, the honest posture is the one from Part 2: unlearning is the remedy of last resort you hope never to need, and every identifiable fact you keep out of weights is a fact you’ll never need it for. RAG-first personalization — the model stays generic, the person-specific data stays in retrievable, deletable stores — is not just the flexible architecture; it’s the erasable one. The memory article reached the same design from the capability side. The best architectures keep being the same architectures.And schedule the collision drills. The change-management theme ended every article the same way: the failure you rehearse is survivable. Deletion deserves the same drill: once a quarter, take a synthetic user with data seeded across every store — including a backup — run the erasure end to end, restore the backup, and check the deletion survived the restore. Teams that run this drill find their first attempt fails somewhere; better on a synthetic Tuesday than a regulator’s deadline.Animation: The resurrection, and the sweep that prevents itPart 5: Case StudiesThe resurrected ex-employer, remediated. The cold open’s team, after the incident: subject keys added to memory extraction and summarization schemas (a week — the schemas existed; the field was new); per-user namespaces in the vector index (the migration was the real cost — a month of dual-writing); the deletion sweep rebuilt as a tracked job walking the subject key across nine stores, with similarity-probe verification and a re-derive step for shared summaries; TTLs shortened on traces after an honest look at how rarely anyone opened traces older than 60 days. Their next real erasure request took four hours of machine time and produced a certificate referencing an opaque ID and eleven probe results. The fact that it could produce a certificate changed the privacy team’s posture from “we believe so” to “here’s the log.”The preservation order. NYT v. OpenAI, as engineering allegory: a deletion system built in good faith — 30-day windows, user delete buttons, published promises — meeting a court order that inverted it overnight, then a production order that shipped 20 million de-identified conversations into a litigation review environment. Every element the sweep architecture needs is visible in the wreckage: hold objects scoped to matters, the 17(3) exemption as a first-class state, deletion promises written with the caveat the law always implied, and de-identification treated honestly — as risk reduction, not erasure — because free text re-identifies its subjects with depressing ease.The disgorgement line. Everalbum’s “Affected Work Product” order is the one to study, because it was complied with and confirmed: the models were destroyed, on a deadline, and the successor company reported it. The lesson isn’t fear of the FTC; it’s that “what did this data touch?” was answerable there — and your system should be able to answer it too, for the day the question arrives wearing any of its uniforms: regulator, court, enterprise customer’s audit, or your own incident review.The backup that undeleted. Composite, and shorter than it deserves: a restore after a bad migration brought back three weeks of state, including 214 users deleted in the interval. Nobody noticed for a month, because nothing checks for the presence of the absent — the omission bug, in its purest form. The fix was mechanical once seen: the deletion log replays after every restore, and the quarterly drill now includes one resurrection attempt. The detection gap is the part to sit with: every monitor they had watched for things going missing. Nothing watched for things coming back.Part 6: The LandscapeBuild: the deletion graph itself (a registry of stores, derivations, and owners — a page, then a config file, then a service); subject-key metadata on every write path; the closure sweep with verification probes and PII-free certificates; legal-hold objects gating the sweep; the restore-replay step; the quarterly drill.Lean on: your stores’ native machinery — trace platforms ship deletion APIs and retention policies (Langfuse deletes a trace and its scores and observations across stores, with the caveat that warehouse deletion takes minutes, not milliseconds, and the docs recommend retention policies over manual cleanup for the routine case); vector databases ship metadata-filtered deletes, namespaces, and compaction (know your engine’s tombstone behavior and compaction cadence — that’s your real erasure latency); memory systems ship delete APIs (Mem0’s operations include DELETE alongside ADD and UPDATE; use them under the sweep, not instead of it); DSAR platforms handle the request-intake side. None of them knows your derivation edges. The graph is yours to draw; the per-store deletes are theirs to execute.My advice on choosing: draw the graph first — one afternoon, one whiteboard, every store that touches user data and every arrow between them. It will be worse than you think, and the drawing is the deliverable that makes everything after it tractable. Then subject keys on new writes (cheap immediately, compounding forever), then TTLs and retention configs (deletion you never have to run), then the sweep, then the probes, then the drill. Backfilling subject keys onto old derived artifacts is the expensive tail — price it before promising it.The whole idea in miniature:def erase(subject_id, matter_holds=()): if any(h.covers(subject_id) for h in matter_holds): return defer(subject_id, until=active_holds_lift) # hold gates the sweep for store in DELETION_GRAPH.stores(): store.delete(subject=subject_id) # direct copies: keyed deletes for artifact in DELETION_GRAPH.shared_artifacts(subject_id): artifact.rederive(excluding=subject_id) # summaries: regenerate, don't redact schedule(compaction_check, DELETION_GRAPH.tombstoning_stores()) results = [probe.run() for probe in absence_probes(subject_id)] # prove the negative deletion_log.append(subject=opaque(subject_id), probes=results) # evidence, PII-free # and after every restore: deletion_log.replay() — backups resurrect; the log re-buriesPart 7: The Failure Modes Field GuideThe resurrection. A derived summary outlives its deleted source and resurfaces the facts. Cure: subject keys on derived artifacts; re-derive shared summaries from surviving sources.The tombstone that names the deceased. The deletion record itself contains the personal data it memorializes. Cure: certificates reference opaque IDs and probe results, never substance.The immortal backup. A restore faithfully resurrects deleted users, and nothing notices. Cure: deletion-log replay as an owned restore step; a resurrection check in the quarterly drill.The cache that keeps serving. A semantic-cache entry built on deleted data answers similar questions for weeks. Cure: the cache is a node in the graph; provenance-linked invalidation.The soft delete that never hardens. Tombstoned vectors persist past the compliance window because compaction never runs. Cure: erasure latency = compaction cadence; schedule accordingly and re-probe after.The eval set that left the building. Production-mined datasets carry the data into repos, laptops, and vendors. Cure: subject keys travel with the dataset; mined sets get TTLs and re-mint cycles.The 90% delete. The sweep covers the stores everyone remembers and misses the two nobody owns. Cure: the graph registry is mandatory; a store not in the registry is a finding, not a footnote.The hold that ate the pipeline. One legal hold, scoped to nothing, freezes all deletion indefinitely. Cure: holds are matter-scoped objects with owners and reviews, not a global switch.The unverified success. The sweep ran, every API returned 200, the fact is still retrievable. Cure: absence probes against production read paths; a 200 is a claim, not evidence.Part 8: How to Start — A One-Week PlanDay 1. Draw the deletion graph. Every store that holds user data, every derivation edge between them, an owner’s name on each node. Include backups. Include the eval sets. The blank stares in this meeting are the point of the meeting.Day 2. Pick one real user (or seed a synthetic one) and find every copy of one fact about them, manually. Time it. That number — usually hours, sometimes days — is your current erasure capability, and it’s what you’ll improve.Day 3. Add subject-key metadata to your two highest-fan-out write paths — memory extraction and summarization are the usual winners. New writes only; backfill is a later, priced decision.Day 4. Set retention. TTLs on traces, checkpoint expiry on completed runs, cache TTLs, eval-set re-mint dates. Every TTL you set today is a deletion you never run tomorrow.Day 5. Script the sweep for the stores you can reach; write the first three absence probes; run the whole thing against your Day-2 subject and read the probe results with appropriate humility.The weekend. Restore a backup into staging. Check whether your Day-5 deletion survived. You now know which kind of team you are, and it’s better to find out on a weekend.Conclusion: The Memory Camp and the Records CampOne camp builds agents that remember. Memory is capability: the agent that recalls last month’s edge case resolves this month’s in one turn; personalization compounds; the amnesiac colleague was the problem and memory was the answer. Deletion, to this camp, is lobotomy performed on a working system — every erased fact a small permanent tax on quality, paid forever.The other camp keeps records the way lawyers keep records: every stored byte is latent liability, every copy a future obligation, and the best data is the data you never wrote down. This camp read the preservation order and the disgorgement cases as the weather report they are, and would rather have an agent that asks twice than an archive that testifies once.Both camps are right, and the synthesis has been hiding in the architecture this whole series: remember by reference, not by copy — and make forgetting a capability, not an apology. A system that stores facts once, at sources, with subject keys, and derives everything else regenerably, gets to be both camps at once: it remembers as well as its retrieval and forgets as completely as its sweep, and it can prove both. The storage-limitation principle and the context-engineering principle turn out to be the same principle wearing different badges: keep what earns its keep, know where everything lives, and be able to remove what no longer belongs. Your agent’s memory was never the risk. The copies nobody could find were.Draw the graph this week. One whiteboard, one afternoon, every arrow. You can’t forget what you can’t find — and right now, neither can your agent.Next in the series: your traces just became discoverable — retention policy, legal hold, and what not to write down, in Your Traces Are Evidence.Forget Me: Deletion in a System Designed to Remember was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.