The interview problem
A customer asks you to remove a confidential document from an AI assistant deployment. It has been ingested, chunked, embedded and cited in cached answers. Some traces may contain excerpts, and a training-data export may include the document. Design a verifiable deletion workflow and explain what you can honestly report as complete.
Original FDE practice, not a reported company interview. This is a technical design exercise; scope and retention requirements are supplied by the customer's authorized owners. All examples are hypothetical. Primary documentation retrieved September 27, 2026; interview date not applicable.
1. Agree on identity, scope and completion
Confirm the tenant, authoritative document identity, versions and requested destinations. Does the request cover the source system, copies managed by the assistant, previously exported files, or all of them? Do not delete the customer's source document merely because removing it from the assistant was authorized. Identify who can approve scope and resolve retention exceptions.
Separate immediate suppression from deletion of active stores, expiry of backups and remediation of trained models. One “deleted” boolean cannot represent these different outcomes. Record requested scope, acknowledged limitations, deadlines, owners and the evidence required for each destination. If a retained copy cannot be removed under the configured controls, report that exception instead of silently narrowing completion.
Use tenant plus source ID plus version where available. A filename is ambiguous, and a content hash alone can conflate identical files belonging to different owners. Derived artifacts should carry parent identities so a deletion can follow the lineage without relying on semantic search to rediscover copies.
2. Coordinate an idempotent deletion job
authorized request → scoped deletion record and generation
↓
suppress reads and future ingestion
↓
lineage inventory → destination-specific work items
↓
delete / invalidate / retained-until / external receipt
↓
verify active stores and restore safeguards
↓
evidence report with unresolved scopeStore a durable job ID and per-destination state: DISCOVERED, BLOCKED, REQUESTED, VERIFIED or RETAINED_UNTIL. Retries operate on the same object/version identity and preserve the receipt. A worker timeout is unknown progress, not success or permission to change the target.
Begin with a tombstone or suppression record enforced at retrieval and ingestion. Invalidate caches and deny creation of new derived artifacts for the targeted lineage. A chunking worker already running must publish through a conditional write or gate that atomically enforces the current deletion generation. A separate check followed by an unrestricted write leaves a race. Otherwise it can recreate an embedding after the deletion worker removes the old one.
Use a consistent cutoff for discovery, then reconcile work published around that cutoff until all permitted publishers are fenced or account for the tombstone. Record source connector checkpoints. A nightly source rescan must not reimport the document while its source copy remains. Define how a later explicit reauthorization creates a new allowed generation rather than accidentally clearing the old request.
3. Trace one document through the deployment
For document D, list source version D:v3, three stored raw versions, twelve text chunks, twelve embeddings, two cached answers and one exported training shard. Also inspect transcripts, debug traces, evaluation fixtures, temporary files and downstream connector copies. These are candidate locations, not proof every deployment stores all of them.
Invalidate a cached answer if it contains an excerpt or unsupported claim derived from D. Merely removing the citation link can leave the confidential text intact. A cache key should carry dependencies or a conservative invalidation scope. When dependencies are missing, broaden invalidation and disclose the additional work rather than claiming a precise purge.
For shared physical storage, delete the tenant's references and derivatives without removing another tenant's independently authorized copy. Reference-count correctness and access isolation both matter. A deduplicated blob may remain physically present for another owner; the completion report must distinguish removal of the requesting tenant's access and copies from global byte destruction.
Inspect the actual storage semantics. In a versioned S3 bucket, a plain delete can create a delete marker while older bytes remain retrievable by version ID. A 404 from an ordinary GET is therefore insufficient evidence of version removal. Enumerate the exact scoped versions and record destination-level results; do not use a broad filename prefix as if it were an exact object identity.
4. Verify absence at the right boundary
After active-store deletion, query by authoritative IDs in the source-copy store, chunk store and vector index. Check direct object/version access, retrieval results, cached answers and background queues. A semantic query that returns no hit is weak evidence because approximate retrieval can miss a document that still exists.
Use a synthetic fixture with known descendants to test the workflow before applying it to sensitive production data. Exercise duplicate requests, a lost delete response, a stale writer, an index rebuild and connector replay. Verify that the tombstone survives the same failures as ordinary data and that failed destinations remain visible.
Do not copy sensitive excerpts into the deletion receipt. Keep minimal identifiers, scope, configuration version, timestamps, per-store verification methods and unresolved exceptions. Hashes and IDs may still be sensitive metadata; restrict their access and retention according to the agreed purpose.
For an external processor, distinguish “request accepted” from “deletion completed.” Record the processor's completion evidence and its stated scope. If you cannot independently inspect that system, say so. A provider receipt is evidence of the provider's claim, not direct observation of every internal replica.
5. Prevent backup restoration from resurrecting data
Some deployments remove active copies promptly but retain immutable backups until expiry. State the retained-until date and access restrictions explicitly. Keep a deletion journal available to recovery procedures so any restored dataset is reconciled before serving or exporting data. Restoring an old backup must not restore an old, incomplete deletion journal as the sole authority.
Suppose backups run at midnight and are retained for thirty days. A deletion arrives just after a backup, and active copies are removed before the next backup. Under an ideal fixed expiry schedule, that backup can contain the document for almost thirty more days. Active deletion today is not evidence that all backup copies disappeared today. Verify actual expiry and any additional replicas rather than turning a configured retention duration into an observed deletion timestamp.
If key destruction is proposed, establish that the key exclusively protects the targeted data and that plaintext copies, cached keys, exports and alternate keys are accounted for. Destroying a shared tenant key to remove one document may make unrelated data unrecoverable. Encryption at rest alone does not imply document-level cryptographic erasure.
6. Treat training artifacts as a separate branch
Check exports, dataset manifests, training run inputs and checkpoint ancestry. Removing D from the current training table prevents future inclusion only if old exports and scheduled jobs are also controlled. A training shard containing other documents may need rewriting into a new immutable version and retirement of the old version.
If a model already consumed D, deleting the dataset row does not remove its influence from weights. Report affected runs and models. An agreed recovery option may be rollback or retraining from an unaffected checkpoint with cleaned data. Do not call continued fine-tuning on clean data “verified forgetting.” A specialized unlearning method requires its own claims, evaluation and limitations.
Absence of a memorized quote in a handful of prompts does not prove that no information remains in the model. Distinguish source-data deletion, artifact retirement and a model-remediation decision in the customer's report. If training was contractually disabled, verify manifests and configuration evidence rather than relying only on a general product statement.
7. Budget discovery and verification work
Suppose a tenant-wide request covers 100,000 documents with twelve chunks and twelve embeddings each. That is 2.4 million chunk/vector entries plus raw versions, caches and logs. At a sustained combined deletion rate of 2,000 entries/s, those entries alone require at least 1,200 seconds, or twenty minutes. It is a lower bound, not the duration of the whole job.
If independent verification checks absence for the same 2.4 million targeted identities at 1,000/s, it adds forty minutes when run sequentially. Pipeline overlap may reduce elapsed time, but destination quotas and index-compaction behavior can dominate. Deleting logical records need not immediately reclaim disk space, so measure logical absence separately from physical capacity recovery.
A 99.9% success rate over 2.4 million targeted entries still leaves 2,400 unresolved entries. Do not round that to complete. Retry transient failures with backoff, isolate blocked stores, and show the unresolved object scope and next action. Avoid letting one slow destination hide successful suppression elsewhere.
8. Deliver an evidence-based completion report
A useful report states: the document versions and tenant covered; when serving and ingestion suppression became effective; which active stores were verified; which external systems supplied receipts; retained backups and their expiry checks; training impact; and unresolved exceptions with owners. Use separate status fields so a delayed backup expiry does not obscure immediate retrieval protection.
Trade-offs: dependency lineage makes precise deletion faster but adds metadata and write-path obligations. Conservative cache invalidation is simpler but disrupts more users. Immutable backups simplify recovery while complicating immediate removal claims. A global full scan can find missed references but is expensive and still cannot prove absence in uninventoryed systems.
Follow-ups: What if D is copied under a new source ID? How would you remove one tenant's data from a shared training export? What if a delayed connector event republishes D? How does a disaster restore preserve deletion decisions? What can you prove when a processor offers only an asynchronous receipt? Which requirement changes if the customer requests source deletion too?
9. Self-review rubric
- Confirm exact scope and distinguish source ownership from assistant copies.
- Suppress serving and fence publishers before declaring active deletion.
- Trace versions, chunks, embeddings, caches, logs and exports by lineage.
- Verify using authoritative identities rather than approximate retrieval alone.
- Account for backups and prevent resurrection during restore.
- Separate training-data deletion from model remediation.
- Report per-destination evidence and unresolved entries without rounding them away.
Sources and related practice
Amazon S3: Deleting object versions from a versioning-enabled bucket, publication date unspecified; retrieved September 27, 2026. Used for the distinction between delete markers and removal of specified versions. The cross-system workflow and examples here are original.
Continue with object garbage collection, training-data provenance and database backup and restore.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.