Deleting and exporting a person's data
A person may ask for a copy of their data, or for it to be deleted. A tester checks the copy is complete and the deletion reaches every place the data was kept.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: moving house. You ask the storage firm for your boxes back. That is an export. Or you ask the firm to destroy them. That is a deletion. Either way, you want proof that it was done, and done fully.
Daily List is a to-do list app. Lily has used it for a year. She asks for two things. First, a copy of her lists. Second, to delete her account. Tom, the tester, checks both.
A gives a person a copy of their data in a form they can use. The is a person's right, in some laws, to have their data deleted. A retention period is how long data is kept before it must be removed.
Tom tests the export first. He opens the file and asks whether all of Lily's lists are there, and the due dates too, and whether a spreadsheet can open it. He also checks that the file holds only Lily's data and nobody else's.
Then he tests the deletion. After Lily's account is deleted, he looks in every place her data lived: the main store, search, logs, old exports and backups. A deletion that only hides the account is not enough.
The picture has a limit. Boxes in a store stay where you put them. Software copies data into many places, and a copy is easy to forget.
A tester does not decide the law. The privacy team writes the rule, and Tom checks that the product follows it.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- spreadsheet
- a grid of rows and columns holding numbers or text
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Checking that a copy of a person's data is complete and usable, and that a deletion reaches every place the data was kept.
- Map the places
- Check the copy
- Run the wipe
- Search again
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Boxes in a storage unit | Data in many places |
| Asking for your boxes back | Data export |
| Asking the firm to destroy them | Right to erasure |
| A date on the lease | Retention period |
WHERE THIS PICTURE STOPS
- Boxes stay where you put them. Software copies data into many places, and a copy is easy to forget.
- You can see an empty unit. Deleted data may still sit in a log or a backup you cannot see.
- A storage firm follows one rule. Software must follow rules written by a team and sometimes by law.
HOOK
Map it, copy it, wipe it, search again.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
An export proves Lily gets a complete copy she can use. A deletion proves the data is gone from every place it was kept.
| In the trick | What it stands for |
|---|---|
| Export | a copy of their data in a form they can use |
| Deletion | the right to erasure reaches every place |
TELL A FRIEND
Moving house means asking the storage firm for your boxes or asking it to destroy them. You want proof either way.
OFTEN MIXED UP WITH Privacy checks. The privacy lesson asks what the product holds and why. This lesson tests two requests from a person: a copy of the data, and its deletion.
PRACTISE AND KEEP
Sources for this topic — 7 sources
- Market practice
Article 17 'Right to erasure (right to be forgotten)' (General Data Protection Regulation text site) ↗ — gdpr-text.com (unofficial text of Regulation (EU) 2016/679) · Article 17 is titled right to erasure; a person can ask the controller to erase their data, with listed grounds such as data no longer needed or consent withdrawn (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Regulation (EU) 2016/679, Article 17. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Art. 20 GDPR Right to data portability (General Data Protection Regulation text site) ↗ — gdpr-info.eu (unofficial text of Regulation (EU) 2016/679) · Article 20: a person can receive data they provided in a structured, commonly used, machine-readable format; it applies where processing rests on consent or a contract and runs by automated means (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Regulation (EU) 2016/679, Article 20. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Right to erasure (Information Commissioner's Office guide to the UK GDPR) ↗ — Information Commissioner's Office (ICO) · UK regulator guide: when an erasure request is valid, take steps to erase from backups as well as live systems; if a backup cannot be changed at once, put it beyond use until it is overwritten (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Testing soft delete query filters (QASkills blog) ↗ — QASkills · Soft-delete tests should check search, counts, joins, exports and direct lookups, plus deleting twice and purging after retention (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
PostgreSQL documentation ↗ — The PostgreSQL Global Development Group · PostgreSQL documentation: the DELETE, TRUNCATE and DROP TABLE commands (registry entry; the commands are described there)
An implementation, not the standard — which is the point. ISO/IEC 9075-2 is paywalled, and this documents the same constructs in text anybody can open. Its isolation-level chapter attributes to the standard explicitly, so it can carry a standard-level claim as long as the citation says which document it is quoting.
Cited as market practice rather than an official standard by kind: an engine's manual is authoritative about that engine and is not the obligation. Where a question turns on behaviour PostgreSQL chose rather than behaviour SQL requires, the answer has to say so.
One correction carried here because it circulates widely: the sentence "The fundamental difference between WHERE and HAVING…", quoted all over the internet as PostgreSQL documentation, is not in the current documentation. It was searched for in the source tree and is not there.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read from the
postgres/postgresdocumentation source tree (doc/src/sgml), which the project itself maintains and which carries the section ids the published URLs are derived from — so a cited section id can be checked against the rendered page. - Market practice
GDPR: deleting personal data from backups (ComplyDog blog) ↗ — ComplyDog · Compliance blog: restored backups must not put deleted data back into live use; sources differ on backups (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
European Commission and EDPB primary interpretive guidance, current ↗ — European Data Protection Board · Opened primary source, 6 November 2026. European Commission and EDPB primary interpretive guidance, current: Opened access, erasure and portability: exceptions, other people’s rights, recipient notification, provided/observed versus inferred data, consent/contract and automated-processing conditions. Opened Commission legal-bases overview: six grounds. Guidance is not statutory text.
Primary source opened for V11 quality-characteristics review. https://commission.europa.eu/law/law-topic/data-protection/information-business-and-organisations/legal-grounds-processing-data_en
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.