Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Legal asks engineering to guarantee that customer data is fully deleted within 30 days of a request across all systems, but most services use soft deletes, backups last 90 days and data is copied into analytics. How do you lead this?

I would lead it as a cross-team programme: first map everywhere personal data lives (operational databases, caches, search indexes, event logs, warehouses, backups and third parties), then define one erasure workflow driven by an event, where each system owner implements hard delete or anonymisation and confirms completion. Soft delete becomes a short grace period followed by a scheduled hard delete or anonymisation. For 90-day backups we agree an approach with legal, such as re-applying deletions after any restore or crypto-shredding with per-customer keys, and we track compliance with metrics, audits and deletion-aware design for new systems.

Why this question is asked

A legal requirement that spans every system is a leadership problem more than a technical one: no single team owns all the copies, most teams believe their soft delete already counts, and the hardest parts (backups, analytics, partners) belong to nobody. Interviewers ask this to see whether a senior leader can turn a vague guarantee into a workflow, ownership and evidence. In this answer, we will see why the current setup cannot meet 30 days, map the data, design the erasure workflow, fix soft deletes, solve backups, and decide how to prove compliance.

1Why Soft Deletes and Copies Break the Guarantee

Privacy laws such as the GDPR give people a right to have their personal data erased, and our legal team has translated that into a 30-day promise. Erasure means the data can no longer be read or linked to the person. A soft delete, setting deleted_at on a row, does not do that: the name, email and history are still there, readable by anyone with database access and copied into every export.

Then there are the copies: caches, search indexes, Kafka topics retained for weeks, warehouse tables, CSV files sent to a marketing tool, and 90 days of backups. A deletion in the main database reaches none of them. So the guarantee is not met today, and fixing one service does not change that.

2Mapping Where Personal Data Lives

We cannot delete what we cannot find, so the first deliverable is a data map. For each system we record which personal data it holds, how it is keyed (customer id, email, device id), who owns it, how long it keeps data and how it can delete. Data lineage from CDC pipelines and service catalogues gives a head start; interviews with teams fill the gaps.

Part of the personal data map
SystemHoldsOwnerErasure method
Customer service DBName, email, addressesAccounts teamHard delete after grace period
Order service DBCustomer id, shipping addressOrders teamAnonymise address, keep amounts
Search clusterName, email in documentsSearch teamDelete documents by customer id
Kafka topicsEvents with emailPlatform teamRetention 7 days, or key-based compaction
WarehouseCustomer dimensionData teamAnonymise rows, rebuild aggregates
Backups (90 days)EverythingPlatform teamAgreed with legal, see below
Email providerEmail, campaign historyMarketing opsCall provider deletion API

3One Erasure Workflow Driven by an Event

Instead of each team inventing its own process, we define one. When a request is verified, a central erasure service records it and publishes a CustomerErasureRequested event with the customer id and a deadline. Every system on the map subscribes, erases its data, and reports completion back. The erasure service tracks each request until every system has confirmed, and escalates when a deadline approaches.

Step throughErasure of one customer
Erasure serviceKafkaOrder serviceWarehouseEmail provider
CustomerErasureRequested(id 42, due 2026-12-05)
deliver event
done: address anonymised
deliver event
done: dimension row anonymised
delete contact via API
accepted
all systems confirmed, close request

8 messages in order. Play them, or step through them one at a time.

Each owner chooses hard delete or anonymisation for their data. Anonymisation means overwriting personal fields with non-identifying values while keeping facts the business must retain, such as invoice amounts that tax law requires us to keep for years. Legal decides which retention obligations override erasure; engineering makes sure everything else goes. Handlers must be idempotent, because events can be delivered twice.

4Soft Delete Becomes a Grace Period

Soft delete is still useful: it lets us undo an accidental account closure. So we keep it, but as a short, defined grace period. A scheduled job then hard deletes or anonymises the row once the period ends, and emits the erasure event so the copies follow.

SQL
-- runs daily; grace period 14 days, well within the 30-day promise
WITH due AS (
SELECT id FROM customers
WHERE deleted_at < now() - interval '14 days' AND erased_at IS NULL
LIMIT 1000
)
UPDATE customers c
SET name = 'erased', email = 'erased-' || c.id || '@invalid', phone = NULL, erased_at = now()
FROM due WHERE c.id = due.id
RETURNING c.id; -- each id is published as CustomerErasureRequested

The 14 days leave 16 days for every downstream system, which is why the grace period must be much shorter than the legal deadline. Batches of 1,000 keep the job from locking large parts of the table.

5Dealing With 90-Day Backups

Backups are the hardest part, because rewriting backup files to remove one customer is usually impossible, and 90 days is longer than 30. This must be agreed with legal and documented, not solved quietly by engineering. Two approaches are common.

The first is to keep backups out of reach and re-apply deletions after any restore: the erasure service keeps a log of erased customer ids (ids only, no personal data), and every restore procedure replays that log before the restored system goes live. Many regulators accept this when backups are access-restricted and expire on schedule. The second is crypto-shredding: personal fields are encrypted with a per-customer key held in a key service, and erasing a customer means destroying the key, which makes the data in every backup and copy unreadable at once. It is powerful but a real investment, best applied to new systems or the most sensitive fields first.

6Tracking Compliance and Designing for Deletion

The programme needs evidence. The erasure service already knows each request's status, so we report the number of open requests, the age of the oldest, the percentage completed within 30 days, and which systems miss their deadlines. Regular audits sample erased customers and search every system for their data. Those numbers go to legal and leadership monthly.

Finally, we stop creating the problem: new systems must register on the data map, subscribe to the erasure event and pass an erasure test before launch, and design reviews ask where personal data is copied. Retrofitting deletion into a finished system costs far more than designing it in.

Step throughLifecycle of one erasure request
  1. Request verifiedIdentity checked, recorded with a deadline
  2. Grace periodSoft delete, undo possible for 14 days
  3. Hard delete or anonymise sourceErasure event published
  4. Every system confirmed?
    YesClose the requestNoEscalate to the owner before the deadline
  5. Audit sampleSearch systems for erased ids

5 steps in order. Play them, or step through them one at a time.

7Follow-up questions

What if a team says their system cannot delete individual records?

Then that becomes a tracked gap with an owner and a date, not a silent exception. Short-term options include anonymising fields in place, shortening retention so data ages out within the deadline, or excluding personal data from that system entirely. If none work, legal must accept the risk explicitly.

How do you handle event logs that cannot be edited, such as Kafka topics?

Keep personal data out of long-lived events by sending ids instead of emails, shorten retention on topics that must carry it, or use compacted topics where a tombstone for the customer key removes the old values. For an event store that must be kept forever, crypto-shredding the personal fields is the usual answer.

Who should own the erasure programme?

A single accountable leader, often in platform or data engineering, with legal as the policy owner. Each system owner remains responsible for their own erasure handler, and the central team owns the workflow, the map and the reporting.

8Conclusion

In this answer, we saw why soft deletes, copies and 90-day backups prevent a 30-day erasure guarantee, and led the fix as a programme: a map of every system holding personal data, an event-driven erasure workflow where each owner deletes or anonymises and confirms, soft delete reduced to a grace period followed by scheduled erasure, a legally agreed backup approach such as replaying deletions after restore or crypto-shredding, and compliance tracked with metrics, audits and deletion-aware design for new systems.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start by being honest with legal that we cannot guarantee it today, because soft delete is not erasure, and the data is copied into caches, search, event logs, the warehouse, third-party tools and 90 days of backups.

Then, if they want more

Then I would run it as a programme with four parts. First, a data map: every system holding personal data, how it is keyed, who owns it and how it can delete.

Second, one erasure workflow: a central service records each verified request and publishes an erasure event, every system owner implements a handler that hard deletes or anonymises and confirms back, and the service tracks each request to completion and escalates before the deadline. Anonymisation keeps facts we must legally retain, like invoice amounts.

Third, soft delete becomes a short grace period, say 14 days, then a scheduled job erases the source and emits the event, leaving time for downstream systems.

Fourth, backups: rewriting them is not realistic, so I would agree with legal on replaying the log of erased ids after any restore, and for sensitive or new systems move to crypto-shredding with per-customer keys.

Finally, I would report open requests, oldest age and percentage completed within 30 days, sample erased customers in audits, and require new systems to subscribe to the erasure event before launch.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Legal asks engineering to guarantee that customer data is fully deleted within 30 days...": https://scrivio-interview-library.netlify.app/databases/data-modeling/eb1be6e924/