Quick revision
The short answer
I would start with a data map of where every personal field lives, including derived and copied data, then build one central request workflow that calls each service's deletion or anonymisation endpoint and tracks every step to completion. Backups are handled by documented retention and expiry, or by crypto-shredding with per-user keys, and records the law requires us to keep, such as invoices, are retained with restricted access and the rest anonymised. Completion metrics and regular audit samples are reported to leadership.
What to remember
In this answer, we designed reliable data deletion across 60 services. A data map records every personal field, copy and decision, a central privacy service resolves identifiers and calls an idempotent erasure contract in every service, and caches, Kafka topics, search indexes and the warehouse are handled explicitly. Backups rely on documented expiry or crypto-shredding with per-person keys, legally required records such as invoices are retained with restricted access until their retention ends, and completion metrics and audit samples keep the programme honest.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would start with a data map of where every personal field lives, including derived and copied data, then build one central request workflow that calls each service's deletion or anonymisation endpoint and tracks every step to completion. Backups are handled by documented retention and expiry, or by crypto-shredding with per-user keys, and records the law requires us to keep, such as invoices, are retained with restricted access and the rest anonymised. Completion metrics and regular audit samples are reported to leadership.
Why this question is asked
Privacy laws such as the GDPR give people the right to have their personal data erased, with a deadline measured in weeks. In a company with 60 services, that one request touches dozens of databases, caches, event streams, search indexes, analytics copies and backups, owned by different teams. A request handled by email and spreadsheets will miss copies and deadlines, and regulators fine both. Interviewers ask senior leaders this question to see whether they can design a system and an organisation that make deletion reliable. In this answer, we will recap what deletion really requires, build the data map, design the central workflow, handle backups and legally retained records, and close with how to measure and lead it.
1A Quick Recap of What Deletion Requires
An erasure request asks us to delete a person's personal data unless we have a legal reason to keep it. Two words in that sentence cause most of the work. Personal data includes anything that identifies the person, directly like a name or email, or indirectly like a customer id that links to them, plus derived data such as profiles and recommendations. And delete means every copy: the primary database, its replicas, caches, Kafka topics, search indexes, the data warehouse, exports and backups.
Anonymisation is the alternative to deletion. If we change a record so it can no longer be linked to the person by any reasonable means, it is no longer personal data and can be kept, for example for aggregate statistics. Pseudonymisation, replacing the name with an id while keeping the link elsewhere, is not enough, because the person is still identifiable.
2Build a Data Map
We cannot delete what we cannot find, so the foundation is a data map: for every service, which personal fields it stores, where (tables, topics, caches, files), which identifier it uses for the person, and where the data is copied to. Building it starts with a survey of service owners, but it must be backed by evidence, such as schema scanning for columns that look like emails or names, and the field classification tags that teams add to their schemas. The copies are the part people forget: the analytics pipeline that loads orders into the warehouse, the search index of support tickets, the CSV export sent to a marketing tool.
Each service in the map also gets an owner and a decision per field: delete, anonymise, or retain for a named legal reason with a retention period. That decision is made once with the privacy and legal teams, not per request.
3A Central Request Workflow
Next, one central privacy service owns every request from start to finish. It verifies the person's identity, records the legal deadline, resolves the person's identifiers across systems (customer id, email, account ids), and then calls a standard deletion endpoint that every service in the data map must implement. Each service deletes or anonymises its own data, including its own caches and derived data, and reports back. The central service retries failures, escalates anything overdue to the owning team, and keeps an auditable record of what each service did and when.
9 messages in order. Play them, or step through them one at a time.
Every service reports back; the central service tracks completion and deadlines.
4Make Every Service Implement the Same Contract
The contract is simple and the same for all 60 services: an idempotent endpoint or event consumer that takes a request id and the person's identifiers, performs the deletion or anonymisation decided in the data map, and reports a status with counts. Idempotent matters, because the central service will retry, and a second call must do nothing harmful.
Notice the tombstone. For Kafka topics with log compaction, publishing a record with the person's key and a null value tells consumers to delete their copy and lets compaction remove the old records. For topics with time-based retention, data disappears when retention expires, which must be within the legal deadline or documented. The platform team provides a library with this endpoint skeleton, so each team writes only the service-specific deletion logic.
5Backups and Legally Retained Records
Backups are the hardest copy, because restoring every backup to delete one person is not practical. There are two accepted approaches. The first is retention and expiry: backups are kept for a documented, limited period, for example 35 days, they are never used for anything but disaster recovery, and if a backup is ever restored, the deletion log is replayed so erased people are erased again. The second is crypto-shredding: each person's sensitive data is encrypted with a per-person key held in a key store, and deleting the key makes every copy of that data unreadable, including the copies in backups. Crypto-shredding is powerful but must be designed in early, since it changes how data is stored.
Some records must be kept by law, such as invoices that tax rules require for a number of years. For these, erasure is overridden by the legal obligation, so we keep the record with restricted access and delete it when the retention period ends, while anonymising everything around it that the obligation does not cover, such as the order history used for recommendations. Anonymisation is also the right choice for data we keep for statistics.
6Measure, Audit and Lead
Leadership attention comes from numbers. We report the share of requests completed within the legal deadline, the median completion time, the number of overdue service steps by team, and the coverage of the data map, meaning the share of services that implement the contract. Each quarter, the privacy team takes a sample of completed requests and searches every system, including the warehouse and logs, for the person's identifiers, which is the real test that deletion worked.
As a leader, I would make the programme owned by an executive with a named privacy engineering team, put the contract into the definition of done for any new service that stores personal data, and treat a missed deadline like a production incident with a review. The engineering cost per team stays small because the platform provides the library, the workflow and the dashboards.
| Location | Approach |
|---|---|
| Service databases | delete or anonymise per data map |
| Caches | explicit eviction plus short TTLs |
| Kafka topics | tombstones on compacted topics, retention on others |
| Search indexes | delete documents by person id |
| Warehouse and analytics | scheduled deletion job, anonymised aggregates |
| Backups | documented expiry or crypto-shredding |
| Invoices and legal records | retain restricted until retention ends |
7Follow-up questions
What if a service cannot find all data for a person because it uses a different identifier?
That is why the central service resolves identifiers first and passes all known ones, and why the data map records which identifier each service uses. Services that store data keyed only by email or device id must be able to search by those, and the gaps found in audit samples become fixes for the owning team.
How do you handle third-party processors such as a marketing tool?
They are part of the data map. The central workflow calls their deletion API, or creates a tracked task when they have none, and contracts with processors include the obligation to delete within a deadline and confirm it.
Should deletion be synchronous?
No. It should be asynchronous with tracking, because warehouse jobs and third parties take hours or days. What matters is that every step is recorded and the whole request finishes within the legal deadline.
8Conclusion
In this answer, we designed reliable data deletion across 60 services. A data map records every personal field, copy and decision, a central privacy service resolves identifiers and calls an idempotent erasure contract in every service, and caches, Kafka topics, search indexes and the warehouse are handled explicitly. Backups rely on documented expiry or crypto-shredding with per-person keys, legally required records such as invoices are retained with restricted access until their retention ends, and completion metrics and audit samples keep the programme honest.
Open with
I would start with a data map, because we cannot delete what we cannot find: for each service, which personal fields it stores, under which identifier, and where it is copied, including caches, Kafka topics, search indexes, the warehouse and exports, backed by schema scanning and field classification tags.
Then, if they want more
For each field, legal and privacy decide once whether to delete, anonymise, or retain for a named legal reason.
Then a central privacy service owns each request: it verifies identity, resolves the person's identifiers, and calls a standard idempotent erasure endpoint that every service implements with a platform library, and it tracks every step, retries and escalates overdue ones against the legal deadline. Services evict caches and publish tombstones on compacted topics.
For backups, I either document a short retention and replay the deletion log after any restore, or, for new systems, use crypto-shredding with per-person keys, so deleting the key makes all copies unreadable. Records like invoices that tax law requires are kept with restricted access until retention ends, and the surrounding data is anonymised.
Finally, I report completion within the deadline, overdue steps per team and data map coverage, and every quarter the privacy team samples completed requests and searches all systems for the person, which proves deletion actually worked.
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.
- Official documentation
- PostgreSQL documentation, MySQL reference manual
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 "Your company must honour data deletion requests under privacy laws across 60 services...": https://scrivio-interview-library.netlify.app/databases/database-security/3260446229/