Erasure Requests You Cannot Fulfil: The 90-Day Right vs Your Backups, Replicas and Logs
Erasure within 90 days sounds simple until you count the copies. Backups, replicas, WAL archives, warehouses and audit logs each break the guarantee differently.
Team Qarbix · · 7 min read
Security & Compliance

Of all the obligations in the DPDP framework, erasure is the one engineering teams underestimate most consistently. The legal text is short. A data principal may request erasure of their personal data, and the request must be addressed within ninety days. The fiduciary must also ensure erasure by its processors.
Then you count the copies.
A single customer record in a typical production environment exists in the primary database, one or more read replicas, the write-ahead log, last night's backup, last month's backup, the analytics warehouse, a search index, a cache, an error tracking payload, a support ticket, a CSV a colleague exported in March, and the audit log that recorded every access to it. Deleting the row deletes one of those.
This article is about the other twelve, and about the one that creates a genuine legal tension.
The obligation, stated precisely
Two separate mechanisms trigger deletion. The first is a data principal request. The second is retention limitation: personal data must be erased once the purpose for which it was collected is no longer being served, unless retention is required by law. The second is arguably harder because it applies continuously and without anyone asking.
Tier one: the copies you can delete synchronously
The primary database, read replicas and caches. A delete on the primary propagates to replicas through replication. Caches need explicit invalidation, and a cache with a long TTL and no invalidation hook will happily serve a deleted record for hours.
One trap here is soft deletes. A deleted_at timestamp is not erasure. It is a flag on data you still hold, and it is by far the most common way teams believe they have implemented erasure without having done so. Soft delete is a fine application pattern; it is not a compliance control. You need a hard delete or an irreversible anonymisation to follow it, on a schedule.
Tier two: backups and the write-ahead log
This is where the honest answer diverges from the convenient one.
You cannot surgically remove one individual from a backup. Backups are immutable point-in-time images by design; that is what makes them useful. Editing them destroys their integrity and their restorability. The convenient answer, that you will delete from backups too, is not implementable.
The workable position is bounded retention plus restore-time remediation. Define a backup retention period, document it, and be able to state it. Personal data in a backup ages out within that window. Then handle the residual risk explicitly: maintain a suppression list of identifiers subject to erasure, and apply it as a mandatory post-restore step so that a restore from a backup predating the request does not resurrect deleted individuals into your live system.
The write-ahead log deserves separate attention because it is frequently overlooked. WAL archives retained for point-in-time recovery contain the row contents, including rows you subsequently deleted. Your WAL retention is part of your erasure timeline whether or not you have thought about it.
Two things you must be able to state to an auditor or an enterprise customer: your maximum backup retention, and your documented restore-time suppression procedure. Together they constitute a defensible position. Neither alone does.
Tier three: derived and downstream copies
The analytics warehouse, the search index, the BI extract, the machine learning feature store, the data lake.
These are where erasure most often silently fails, because they are populated by pipelines that copy forward and rarely propagate deletes backward. A nightly ETL that appends will keep the deleted customer indefinitely. Deletion has to be pushed explicitly to each downstream system, which means you first need a complete inventory of them.
Most organisations do not have that inventory. Building it is the single highest-value preparatory task for erasure compliance, and it is usually a week of asking people what they connected to production and being surprised by the answers.
Model training data is the emerging hard case. Data absorbed into trained model weights is not deletable in any meaningful sense. The defensible approach is to exclude personal data from training inputs, or to train only on irreversibly anonymised data, rather than to promise deletion you cannot perform.
Tier four: audit logs, and the tension
Here is the genuine conflict, and it is worth being clear about it rather than pretending it resolves neatly.
The DPDP framework requires you to erase personal data on request. It also requires you to maintain logs and monitoring capable of detecting unauthorised access, retained for a specified period, in order to investigate breaches. If your audit log records that a support engineer accessed a particular customer's record, that log entry itself contains personal data about that customer.
Erasing the audit log to satisfy the erasure request destroys the evidence you are separately obliged to keep. Retaining it means you have not fully erased.
The resolution most practitioners land on rests on the legal-obligation exception to erasure: data retained to comply with a legal requirement is generally out of scope of the erasure right. Audit logs retained under a statutory security obligation fall into that category. But you should implement the position deliberately rather than by accident:
Design audit logs to reference individuals by a stable internal identifier rather than by name, phone number or email. A log that says user 8812 accessed record 44192 is far less exposed than one carrying the identifiers themselves.
Never log query parameters or result values into the audit trail. Log the statement shape, the objects touched and the row count. Logging the values is a serious and common design error, and it turns your compliance artefact into a second copy of the very data you are protecting.
Document the retention basis explicitly, so that when the tension is raised in an audit you have a reasoned position rather than a shrug.
A workable erasure architecture
Maintain a data map: every system holding personal data, its retention period, and its deletion mechanism. Without this the rest is guesswork.
Implement erasure as an orchestrated workflow across systems, not as a single DELETE statement.
Maintain a durable suppression list and apply it after every restore.
Automate retention-based deletion on a schedule, since the retention obligation is continuous and nobody will remember to run it manually.
Record every erasure action: what was requested, which systems were processed, when, and by whom. The evidence that you erased is as important as the erasure.
How Qarbix DataGuard helps
DataGuard does not delete data for you, and any tool claiming to solve erasure end to end across a heterogeneous estate should be treated sceptically. What it addresses are the two places erasure work most often breaks down.
Sensitive data classification tells you which columns across which databases hold personal data. This is the foundation of the data map, and it is the step teams skip. You cannot orchestrate erasure across systems you have not enumerated.
Audit logging is designed around the tension described above: recording who accessed what and how much, bound to identity, rather than capturing result values into the log. The audit trail supports your investigation obligation without silently becoming another copy of the personal data.
The audit trail also evidences the erasure workflow itself, which is what you produce when a customer or regulator asks you to demonstrate that a request was actually carried out.
Self-hosted deployment keeps the classification results, which are effectively a map of where your most sensitive data lives, inside your own infrastructure.
Frequently asked questions
Do we have to delete personal data from backups under DPDP?
Surgical deletion from backups is not technically feasible and is not the expected approach. The defensible position combines a documented, bounded backup retention period with a suppression list applied at restore time so that erased individuals are not reintroduced.
Is a soft delete sufficient for an erasure request?
No. A soft delete flags a record you continue to hold. Erasure requires the data to be removed or irreversibly anonymised.
How long do we have to respond to an erasure request?
Erasure requests must be addressed within ninety days, and the fiduciary must also ensure erasure by its data processors.
Do audit logs have to be erased when a customer requests erasure?
Data retained to meet a legal obligation is generally outside the scope of the erasure right, and security logs retained under a statutory requirement typically fall there. Design logs to minimise the personal data they carry, and document the retention basis.
What about personal data used to train a machine learning model?
Data absorbed into model weights cannot be meaningfully deleted. Exclude personal data from training inputs or train only on irreversibly anonymised data rather than committing to deletion you cannot perform.
Tags
#database security, #database governance
Written by Team Qarbix, the engineers who build CloudLens and DataGuard.