A GDPR deletion request starts with two checks before anything is deleted: that the request comes from the person, and where their data sits, from your users table to Stripe, your email tool, logs and backups. Article 17 says when to erase and when data may stay, and Article 12 gives you one month from receipt to answer.
The GDPR deletion request runbook, step by step
A GDPR deletion request runbook has 9 steps: log the request and its date, confirm identity, decide whether you are the controller, map every system, choose delete, anonymize or keep for each category, preview the deletion, run it, tell recipients and processors, then reply with what was erased and what was kept.
The steps follow the GDPR’s text on EUR-Lex and the UK regulator’s right to erasure guidance, cited where each rule applies; this is an engineering runbook, not legal advice. A GDPR data deletion request rarely arrives with that label: it comes as a support email, a ticket, a form, and under the UK GDPR even a phone call, because the UK guidance says a request for erasure can be made “verbally or in writing” to “any part of your organisation”. An email that says “close my account and remove everything I gave you” is a GDPR delete request too, and the clock starts when it lands. Access and export requests share that clock and have their own steps in the full data subject request checklist.
- 01 Log the request: who asked, the channel, the exact wording and the date it arrived.
- 02 Confirm the request comes from the person. Where you have reasonable doubts, ask only for the additional information needed to confirm identity (Article 12(6)).
- 03 Decide whether you are the controller or the processor for this data.
- 04 Map every system that holds the person, searching by every identifier they used.
- 05 Choose delete, anonymize or keep for each category of data, with the ground for anything kept.
- 06 Preview the deletion: count what will go before anything goes.
- 07 Run the deletion, in one database transaction where the database allows it.
- 08 Tell each recipient and processor (Article 19), and put backup copies beyond use.
- 09 Reply with what was erased, what was kept and why, and keep the record.
What is the right to erasure, and what it does not cover
The right to erasure is Article 17 of the GDPR: a person can have their data erased without undue delay when one of its grounds applies, such as the data no longer being necessary or consent being withdrawn. The right is not absolute; Article 17(3) lists when you may keep data, such as a legal obligation or legal claims.
Article 17(1) has six grounds: the data is no longer necessary for the purpose it was collected for; the person withdraws consent and no other legal ground supports the processing; the person objects and there are no overriding legitimate grounds, or the objection is to direct marketing; the data was processed unlawfully; a legal obligation requires erasure; or the data was collected from a child when offering an information society service. The Article’s own heading adds the other name, “right to be forgotten”. This page uses the EU GDPR’s article numbers. The UK GDPR carries the same right under its own Article 17, and the UK guidance cited here was published by the Information Commissioner’s Office, which the Information Commission replaced on September 30, 2026.
What the right does not cover is a demand to delete every record on sight: Article 17(3) keeps processing that is necessary for a legal obligation, for legal claims and for three other purposes. What it does reach, as we frame the job, is every copy you control. The UK guidance names backups outright (“backup systems as well as live systems”), and the same logic takes in logs and every vendor account the person’s data reached. Erasure is one duty among several; the rest, article by article, belong in a GDPR compliance checklist for small SaaS teams.
Controller or processor: who decides on the request
A controller decides on a deletion request; a processor acts on the controller’s instructions. A SaaS that holds data for its business customers is usually their processor for that data, so it passes the request to the customer and helps carry it out rather than answering the person directly.
Article 28(3) writes both halves into the contract: the processor handles the data “only on documented instructions from the controller”, and it assists the controller “by appropriate technical and organisational measures, insofar as this is possible” in answering rights requests. For a B2B product that splits one inbox into two cases. For a former account holder, a trial signup or a lead on your mailing list, the data is your own: you are the controller, and this runbook is yours to run. An end user inside a customer’s workspace belongs to the customer: forward the request, say what you hold about that person, and act when the customer instructs you. Never answer that end user on the customer’s behalf without the instruction. What each customer contract says about this help is set out in the DPA terms Article 28 requires.
Map every place the person’s data lives
Search by every identifier the person used (email, user id, payment customer id, phone number), because each system keys on a different one. The table below covers the systems a typical AI-built SaaS on Supabase carries; swap in your own vendors.
| system | what it usually holds | how to delete or anonymize it | evidence to keep |
|---|---|---|---|
| App database (Postgres) | Rows keyed on the user id: profile, orders, messages, file metadata, events | DELETE by user id after the dry run below; child rows go only where a foreign key cascades, and a plain NO ACTION key usually makes the delete fail with an error | Row counts before and after |
| Auth (Supabase Auth) | The auth.users record the person signs in with | auth.admin.deleteUser() on a server with the service_role key; it errors while the user still owns Storage objects | The API response |
| File storage (Supabase Storage) | Uploads the database rows point to | The Storage API’s remove method; a SQL delete leaves the file orphaned in the bucket | The list of deleted files it returns |
| Payments (Stripe) | Customer, saved cards, subscriptions, invoices | Delete the customer (see the vendor table) | The deleted: true response |
| Email and marketing (Resend, as one example) | The contact record | Delete the contact by id or by email | The deleted: true response |
| Analytics (PostHog) | Person profile, events, session recordings | Delete the person; its events and recordings can be deleted with it | The request, then a later check |
| Error tracking (Sentry) | Events whose user fields, messages or tags carry the email | Delete the issues that hold those events | The deleted issue ids |
| AI vendor (OpenAI API) | Prompts and responses your features sent | See the vendor table | The ids of stored items you deleted |
| Support inbox and CRM | Threads, notes, attachments | Not stated in this page’s sources; check the tool’s own delete or anonymize option | A note of what was removed |
| Backups | Whole copies of the database | Not edited; put beyond use (backup section below) | The deletion log entry |
Two Supabase details matter here. Marking the account deleted only in your own tables “leaves the auth.users row intact, so it can still authenticate and refresh”, which is why the auth row is its own step. And the order matters: delete the person’s Storage objects first, then the auth user, since an auth user that still owns objects cannot be deleted; the call and its shouldSoftDelete option are in Supabase’s deleteUser reference. Building this inventory once, before any request, is a data map GDPR reviewers accept, and the in-app path that reaches related records and files on its own is a complete account deletion feature.
Decide what erasure means for each category
Erasure means one of three outcomes per category of data: delete it, anonymize it so it no longer identifies the person, or keep it under a stated Article 17(3) ground, such as invoices a tax law requires you to hold, and stop using it for anything else.
| category | outcome | the ground or reason |
|---|---|---|
| Account and profile | Delete | Article 17(1)(a): no longer necessary once the account closes |
| Content others rely on (comments, shared documents) | Anonymize the author field, or delete | A judgment the controller makes and records, not a rule in the text |
| Invoices and payment records | Keep, and stop any other use | Article 17(3)(b), a legal obligation such as tax or accounting law; the keeping period is that law’s |
| Security and audit logs | Keep for a short, stated period, then delete | A judgment the controller documents, bounded by storage limitation (Article 5(1)(e)) |
| Analytics and marketing data | Delete | Article 17(1)(a) or (b): not needed, or consent withdrawn |
| Messages sent to other users | Remove or anonymize their side only | See shared records below |
A soft-deleted row is not erased. A deleted_at flag hides the row from your queries and keeps every column, so a category marked “delete” needs a real delete or an anonymizing update; soft delete, and why it is not erasure covers when a recoverable delete still belongs in the product. How long each kept category stays, and who checks it ends, is a data retention policy for a small SaaS.
Anonymization fails when one identifying field survives. The Danish regulator, Datatilsynet, inspected the taxi company Taxa 4x35, which said it anonymized booking and trip data after two years. Only the customer’s name was deleted at that point; the phone number, the key to the company’s database, stayed for five years, so trips with pick-up and drop-off addresses could still be linked to a person. In its March 2019 decision the regulator found the anonymization procedure insufficient under Article 5(1)(e) and the deletions not documented well enough, and it reported the company to the police with a proposed fine of DKK 1.2 million; the district court fined the company DKK 100,000, and the High Court raised that to DKK 250,000. The lesson we take from it: an erasure that covers only the fields and systems someone remembered is a partial erasure, and a reply that calls it complete is the second problem.
Can you refuse a GDPR request for erasure?
A GDPR request for erasure can be refused, in part or in full, when an Article 17(3) exception applies or the request is manifestly unfounded or excessive. The reply states the reason, and tells the person they can complain to a supervisory authority and seek a judicial remedy.
The Article 17(3) exceptions are freedom of expression and information, a legal obligation or a public task, public health, archiving and research, and legal claims. Article 12(5) adds the request that is “manifestly unfounded or excessive, in particular because of their repetitive character”: you may charge a reasonable fee or refuse, and you carry the burden of showing why. The UK guidance asks you to judge each request on its own and says “You should not have a blanket policy.” Refusal can be partial, “wholly or partly” in that guidance’s words. In an app with billing, a partial refusal looks like this: keep the invoices, erase the rest, and say which is which in the reply, sent within one month (Article 12(4)).
Shared records and other people’s data
A message thread, a shared document and a team workspace all hold more than one person’s data. Erasing one person must not delete another user’s messages or files, so remove that person’s own messages or anonymize the author field, and keep the thread for the people still in it. Workspace content a business customer owns stays with that customer, under the controller split above. Our reading is that the risk in code is a cascade chain: if threads cascade from the user who started them and messages cascade from threads, deleting one person deletes every reply in the threads they started, other people’s included.
Preview the deletion before it touches production
Run the map’s queries as counts first, on a copy of the database or inside a transaction you roll back, then compare those counts with what the delete will remove, child tables included. Only then run it for real. A transaction is “a single, all-or-nothing operation”, and ROLLBACK instead of COMMIT cancels every change made inside it; while it is open, its changes are invisible to other transactions. Both points are in PostgreSQL’s transactions tutorial.
-- Dry run. Table names are placeholders; nothing survives the ROLLBACK.
BEGIN;
CREATE TEMP TABLE target AS SELECT '00000000-0000-0000-0000-000000000000'::uuid AS id;
SELECT 'users' AS tbl, count(*) FROM users WHERE id IN (SELECT id FROM target)
UNION ALL SELECT 'profiles', count(*) FROM profiles WHERE user_id IN (SELECT id FROM target)
UNION ALL SELECT 'orders', count(*) FROM orders WHERE user_id IN (SELECT id FROM target)
UNION ALL SELECT 'file_metadata', count(*) FROM file_metadata WHERE owner_id IN (SELECT id FROM target)
UNION ALL SELECT 'events', count(*) FROM events WHERE user_id IN (SELECT id FROM target);
DELETE FROM events WHERE user_id IN (SELECT id FROM target);
DELETE FROM file_metadata WHERE owner_id IN (SELECT id FROM target);
DELETE FROM profiles WHERE user_id IN (SELECT id FROM target);
DELETE FROM users WHERE id IN (SELECT id FROM target);
-- Run the SELECT again here. Orders are kept, so their count must not change.
ROLLBACK;
Foreign keys decide what a DELETE reaches. With the default NO ACTION, deleting a referenced row “will usually result in an error”; CASCADE deletes the referencing rows as well; SET NULL keeps them and clears the link. A cascade from users to orders would take the invoices you meant to keep, and the second count is where that shows up before it costs you anything. A table that stores the user id with no foreign key at all is the opposite case: nothing blocks the delete and nothing removes its rows, so only the map catches it. Deleting file_metadata rows also leaves the files themselves in the bucket; they go through the Storage API, as the map table says.
Tell processors and recipients what you erased
Article 19 makes you tell each recipient you disclosed the data to about the erasure, unless that proves impossible or involves disproportionate effort. For a small SaaS that usually means the payment, email, analytics, error tracking and AI vendors, each through its own deletion route.
| vendor | what it holds | its deletion route | what it keeps by its own terms |
|---|---|---|---|
| Stripe | Customer, cards, subscriptions, invoices | Delete the customer: permanent, cancels active subscriptions at once, removes card details | The deleted customer stays retrievable through the API for its history; Stripe’s privacy policy says it may keep data for its legal, fraud-prevention, tax and accounting duties |
| Supabase Auth | The sign-in record | auth.admin.deleteUser(), server only | With shouldSoftDelete on, a hashed user id that still allows identification; with the default, the auth.users row is removed |
| Resend | The contact | Delete the contact by id or email | Email content, delivery events and logs for 30 days on Free, Pro and Scale plans; a specific message can go sooner through Resend’s support |
| PostHog | Person, events, session recordings | Delete the person with delete_events=true and delete_recordings=true, or Delete person in the UI | Events clear asynchronously in non-peak hours (weekends on PostHog Cloud) |
| Sentry | Issues and their events, tag values | Delete the issue; a single event cannot be deleted; tag data is removed in Project Settings > Tags | Data spread across many issues may need the project deleted and re-created |
| OpenAI API | Prompts and responses | Stored conversations last until you delete them | Abuse monitoring logs for up to 30 days by default, longer where law requires it or where reasonably necessary to protect its services or any third party from harm; Responses API data at least 30 days by default |
The routes come from Stripe’s delete-a-customer API, PostHog’s data deletion docs and Sentry’s personal data docs; OpenAI’s retention figures are on its data controls page. Keep each vendor’s confirmation as the evidence: the API response, a ticket, or a dated note of what the dashboard showed. PostHog queues event deletion, so check again after the queue has run rather than on the day. If the person asks which recipients you told, Article 19 says you inform them. Which vendors belong on the list in the first place is your sub-processor list.
GDPR delete data from backups: put it beyond use, then re-apply on restore
Backup copies can keep an erased person’s data until they are overwritten, under the UK regulator’s guidance, provided the backup data is put “beyond use”: held only until it is replaced on an established schedule and used for no other purpose. The person must be told what happens to it.
That is the position in the UK regulator’s right to erasure guidance, which still sits on ico.org.uk under the Information Commission and carries a note that it is under review after the Data (Use and Access) Act. The EU text of Article 17 does not mention backups. The deletion log below is our practice, not the regulator’s wording; it is what keeps “beyond use” true if a backup is ever restored.
- 01 Record the erasure in a deletion log: the internal ids and the date, never the erased data itself.
- 02 Let backups expire on their normal schedule; do not edit them.
- 03 Never restore a backup for live use without first re-applying every deletion logged since that backup was taken.
- 04 Tell the person their data stays in backups until the schedule overwrites it.
Restoring an immutable snapshot taken before the erasure is, in our reading, compatible with that guidance when the log is re-applied before the restored data is used for anything. How the backups themselves are taken and tested is the database backup checklist.
A filled example: one erasure request, worked through
This is an illustration with stated assumptions, not a request we handled. A B2B SaaS runs on Supabase with Stripe, PostHog and Sentry. It receives two requests in the same week. The first comes from an end user inside one customer’s workspace: the SaaS is that customer’s processor, so it forwards the request to the customer, says what it holds, and waits for the instruction. The second comes from a former account holder of its own, and the log for that one fills in like this.
| system | found | outcome | ground | evidence | date |
|---|---|---|---|---|---|
users and profiles rows | Yes | Deleted | No longer necessary, 17(1)(a) | Row counts before and after | Day of the run |
| Uploaded files | Yes | Deleted through the Storage API | No longer necessary, 17(1)(a) | List of deleted files | Day of the run |
| Stripe customer | Yes | Customer deleted; invoices kept | Invoices: legal obligation, 17(3)(b) | deleted: true response | Day of the run |
| PostHog person | Yes | Deleted with events and recordings | No longer necessary, 17(1)(a) | API response, then a recheck | Request day and recheck day |
| Sentry issues holding the email | Yes | Issues deleted | No longer necessary, 17(1)(a) | Deleted issue ids | Day of the run |
| Support threads | Yes | Author anonymized, other people’s replies kept | Shared record | Thread ids | Day of the run |
| Backups | Yes | Logged; expire on schedule | Put beyond use (UK guidance) | Deletion log entry | Date the last copy expires |
The reply then takes three sentences, written in the company’s voice:
We have erased your account, profile, uploaded files, analytics profile and error reports, and deleted your customer record with our payment processor. We keep your invoices because tax law requires it, and use them for nothing else. Copies in our backups are not used and are overwritten on our normal backup schedule.
How to verify the deletion and what to send back
A deletion is verified by re-running the map: every query that found the person returns nothing, each vendor’s record is gone or anonymized, the kept categories are listed with their ground, and the reply sent to the person matches that record.
- 01 Re-run every map query and expect zero rows, then search text columns for the email and name too, because a map built from known columns misses free text.
- 02 Open each vendor and confirm the record is gone or anonymized, or that its queued deletion has finished.
- 03 Confirm the kept categories match the category table and nothing else remains.
- 04 Search the logs you retain for the email after the run, and note how far back they go: an empty search over a short window proves little.
- 05 Check the deletion log entry exists, with the ids and the date.
- 06 Send the reply within the deadline and file it with the request.
The deadline sits in Article 12(3): information on the action taken goes out “without undue delay and in any event within one month of receipt of the request”, and that period “may be extended by two further months where necessary”. An extension has to be announced, with its reasons, inside the first month.
Where the sprint does this
If working through this runbook showed that the app has no reliable way to delete one person’s data across its systems, take your data map to a free audit: a video call where we talk it through with you and agree which deletion path to build first. Our Production Hardening Sprint builds those paths as part of 123 deliverables in 10 working days . Three of them are this runbook in code: authenticated export and deletion workflows covering related systems and documented retention exceptions (12.2), an account deletion flow covering related records and stored assets under the documented retention rules (1.8), and soft deletion where the product needs recovery, consistently with account-erasure and retention rules (4.9).
Common questions about erasure requests
Does GDPR require data to be deleted?
Yes, when one of the Article 17(1) grounds applies and no Article 17(3) exception does, the controller must erase the data without undue delay. Separately, Article 5(1)(e) allows data to be kept in a form that identifies people for no longer than its purpose needs, so identifying data you hold with no purpose should be deleted or anonymized even before anyone asks.
How long do I have to delete data after a GDPR request?
One month from receipt, under Article 12(3), and you can extend by two further months where the complexity and number of requests make it necessary, if you tell the person within the first month and give the reasons. Under the UK guidance, backup copies put beyond use can follow their normal overwrite schedule, provided the person knows.
What are the GDPR rules for deleting data?
Four articles set them: Article 17 says when a person can have data erased and when it may be kept, Article 12 sets the one-month deadline and the terms for refusing, Article 19 requires telling each recipient, and Article 5(1)(e) bars keeping identifying data longer than its purpose needs.
How to make a data deletion request?
Contact the company that holds your data, or its data protection officer if it has one, and ask it to erase your personal data under Article 17 of the GDPR, naming the account or data you mean. It must answer without undue delay and at the latest within one month, and it may ask you to confirm your identity, for instance through a verification link; send the request in writing and keep the date, since the month runs from receipt.
Can your app erase one person everywhere?
Deleting a user row is easy, but their data also sits with vendors, in logs and in backups, and a missed copy breaks the promise. During the audit, we look at your app with you and point out the places a deletion would miss.
Book a free audit →
Free · 30 minutes · No code access needed