In brief
The right to erasure, also called the right to be forgotten, comes from Article 17 of the GDPR: the controller erases a person's data without undue delay when one of the grounds applies, for example the data is no longer needed or the person withdrew consent. The person is owed a response within one month. In IT systems the hard part is not the DELETE statement itself, but finding the data everywhere: databases, indexes, the data warehouse, logs, files, recipients and backups, while keeping data the law requires you to retain.
What GDPR Article 17 says
A person can request erasure of their data, and the controller must erase it without undue delay when one of the grounds in Article 17(1) applies:
- the data is no longer necessary for the purposes for which it was collected;
- the person withdrew consent and there is no other legal ground for processing;
- the person successfully objected to the processing;
- the data was processed unlawfully;
- erasure is required by a legal obligation;
- the data was collected in relation to information society services offered to a child.
Article 17(3) lists exceptions. Two matter most for businesses: processing needed to comply with a legal obligation (for example keeping accounting records) and for the establishment, exercise or defense of legal claims. So the right to erasure is not absolute: some data stays, but only to the extent and for as long as the exception justifies.
Deadlines in Article 12(3): information on the action taken within one month of receiving the request, extendable by two further months for complex or numerous requests. The person must be told about the extension within the first month. Article 19 adds the duty to inform every recipient to whom the data was disclosed about the erasure, unless that proves impossible or involves disproportionate effort.
Whether a request is justified and which data falls under an exception is for the controller and its data protection officer to decide. The IT team's job is to make sure the system can carry out that decision.
Where a person's data actually lives
The first step is a personal data map. For a typical customer-facing system the list is longer than the architecture diagram suggests:
| Location | Typical problem |
|---|---|
| main application database | foreign keys and history tables that block deletion |
| replicas, cache, search index | deleted in the database but still visible in search |
| data warehouse and reports | copies loaded nightly, with no deletion process |
| event streams and event store | events immutable by design |
| application and server logs | an email address or national ID number in the log message |
| files and attachments in object storage | CVs, document scans, recordings |
| SaaS systems (CRM, email, helpdesk) | data outside the team's control, deleted through the vendor's API |
| test environments | a production copy from a year ago |
| backups | a single record cannot be deleted from a backup |
Without this map you can answer neither the person nor the supervisory authority. It is easiest to maintain when it is built together with the system, following the privacy by design approach. Test environments are best taken out of the problem altogether by using masked or synthetic data, as in Test data and the GDPR.
How to design erasure
One entry point, many executors. The request goes to a single process that identifies the person, checks retention exceptions and sends the command to every system on the map. In a service architecture, an event such as “erasure requested for person X”, which each service handles itself and confirms, works well. The orchestrator shows the status: where data was deleted, where it is pending, where it failed.
Deletion, anonymization or restriction. A record that must remain for accounting reasons can be reduced to the data the regulation requires and blocked for other purposes. Anonymization replaces deletion only when it genuinely prevents re-identifying the person. The EDPB's 2026 report names ineffective anonymization techniques as one of the frequent problems, so replacing a surname with “X” while keeping the address and date of birth is not anonymization.
Retention as a rule, not a manual exception. Store retention periods for each data category in configuration, and a scheduled job deletes whatever has expired. An Article 17 request then only speeds up what would have happened anyway.
Immutable events. In systems with event sourcing or long retention in Kafka, personal data is kept outside the event (the event holds only an identifier) or encrypted with a separate key per person. Deleting the key makes the data unreadable. The trade-offs of this pattern are covered in Event sourcing and CQRS.
An execution trail without the data. The request register holds the request ID, dates, the decision and the status in each system, but not a copy of the erased data.
Backups and data recipients
According to the EDPB report on its 2025 coordinated action, backups are a problem controllers struggle with. You cannot remove a single record from an immutable backup without compromising its integrity. A practical approach:
- Backups have a finite retention period, so the data disappears from them as they rotate.
- A list of erased identifiers is stored separately and applied after every restore, before the system goes back into service.
- Backups are not used for other purposes, such as analytics.
- A policy describes this mechanism, so the answer to the person and to the supervisory authority is consistent.
It is worth extending the backup restore test to check that erased people do not come back. Restore testing is covered in Cloud backups: the 3-2-1 rule and restore testing.
Data recipients are the second area. Under Article 28(3) of the GDPR a processor must assist the controller in fulfilling data subject rights and, at the end of the service, delete or return the data. The data processing agreement should therefore state how and how quickly the SaaS vendor erases data on request, and the integration should do it through an API, not by email.
How to test it
The erasure process is a feature like any other and needs test cases:
- a person with data in every system on the map: after the request, search, reports and exports no longer show them;
- a person with an invoice from two years ago: accounting data stays, marketing data goes;
- a request during an active order or dispute: the system holds the erasure and flags the exception;
- one service failing: the orchestrator retries and alerts, and does not report success;
- a backup restore: erased people do not come back;
- data in logs: no personal identifiers in log messages after the change.
An example of a system where erasing candidate data is part of the process is the project on an AI Worker in a recruitment agency.
Questions and answers
How long does a company have to erase data on request?
Article 12(3) of the GDPR gives one month from receipt of the request to inform the person of the action taken. For complex or numerous requests the deadline can be extended by two further months, but the person must be told about the extension and its reasons within the first month. Article 17 itself speaks of erasure without undue delay, so one month is the upper limit, not the goal.
Do you have to erase data from backups?
The GDPR has no separate provision on backups, and the EDPB's 2026 report identifies them as a frequent problem. In practice controllers use a limited backup retention period, do not use backups for other purposes and reapply erasures after every restore. The specific solution is worth agreeing with the data protection officer and describing in a policy.
Can you refuse to erase data?
Yes, if none of the grounds in Article 17(1) applies or an exception in Article 17(3) does, for example a legal obligation to keep accounting records or defense against legal claims. A refusal must be explained within one month, with information about the right to complain to the supervisory authority, in Poland the President of UODO (the Polish Data Protection Authority). The exception covers only the data it concerns, not the whole customer profile.
Can anonymization replace erasure?
Only effective anonymization, meaning the person cannot be identified even by combining the data with other data. Replacing the first name and surname while keeping the address, date of birth and order history usually does not meet that bar. The EDPB report on its coordinated action on the right to erasure lists ineffective anonymization as one of the frequent problems.