GDPR Right to Erasure Without Breaking Your Data¶
Under Article 17 of the GDPR, the right to be forgotten, a customer can ask you to
erase their personal data, and you have a month to do it. It sounds like one DELETE. In a real app it rarely is.
Why erasure is hard¶
A customer's name and email don't sit in one row. They are copied into orders, invoices, review bylines, search indexes, backups, log lines and the payloads of every event your systems sent each other. Deleting the customer record leaves all of those behind. Deleting everything that mentions the customer breaks your order history, your revenue reports and the reviews other shoppers rely on.
And some of it you may not delete at all: tax law makes you keep invoice data for years, and the GDPR allows that (Art. 17(3)(b)).
So erasure has to do three things at once: make the person unidentifiable everywhere, keep the business records working, and keep what the law says you must keep.
Keep personal data in one place¶
The first rule makes the rest possible: personal data lives in exactly one kind of object. In ObjectsGrid that is
the Person. An order's customer and a review's author don't copy the person's name;
they hold the Person's URL. Lists, webhook events and logs never carry the personal fields at all. A webhook receiver
that needs the email reads the Person by id, and your access control decides whether it may.
There are no copies to hunt down, because none were made.
Crypto-shredding¶
The personal fields of a Person, its names, email, telephone, address, birthDate, jobTitle and worksFor,
are encrypted at rest with keys kept per person. Every version of the Person is encrypted with them.
Erasing the person deletes those keys. This is crypto-shredding: the encrypted values may still exist in storage, but without the key they are random bytes that nobody, ObjectsGrid included, can read back. Every copy becomes unreadable at once, without anyone having to find it.
With ObjectsGrid it is one call:
curl -X POST https://apis.objectsgrid.com/persons/<id>/erasure \
-H 'X-ObjectsGrid-AccessPoint: EU' \
-H "Authorization: Bearer $TOKEN"
The answer is 200 with the time of the erasure. The erasure:
- empties the personal fields in every version of the Person;
- keeps the Person itself, with its other fields, so every order and review that points to it still works;
- disables the person's user account and removes their sign-in identities;
- sends a
PersonErasedwebhook event, so your own systems, your email tool or your CRM, erase their copies too. As the controller of the data, that part is yours.
Repeating an erasure is safe, and administrators decide who else may erase, a privacy officer for example, with
an erase action in your ABAC policy.
What you may keep¶
Statistics. A Person also has demographics, derived on every write: the birth year (90 and over grouped), the
country, region, city and postal area, gender, languages and loyalty tiers. They identify nobody on their own, so they
stay after the erasure, and your marketing reports keep their history. Leave out groups of fewer than 10 people, so a
rare combination can't single anyone out.
Accounting data. An Order points to the version of the customer that was current when
they ordered. An erasure keeps the name, email, telephone and address of the versions orders point to, and the orders'
billing addresses and parcel addresses, and those of their returns, for as many years as your Organization Account's
customerDataRetentionYears says, 10 by default.
Only accounts tagged for accounting can read them; for everyone else they are hidden, so they can't be used for
marketing (Art. 18). When the retention ends, they are deleted too. The orders themselves stay.
Legal holds. While the data is needed for a legal claim (Art. 17(3)(e)), an administrator tags the Person with a legal hold, and it can't be erased until the hold is lifted.
Access logs. They record each request's account id and IP address, never the person's fields, and are deleted 18 months after each request.
A checklist for your own systems¶
- Keep personal data in one place, and refer to it by id everywhere else.
- Never put personal data in logs, events or search indexes.
- Encrypt it per person, so erasure is a key deletion, not a search.
- Separate what identifies someone from what describes a group, and keep the second.
- Know which records the law makes you keep, for how long, and who may read them.
- Tell every system holding a copy, and record that you did.
ObjectsGrid does the first five for you. The personal data guide has every detail, and Security and compliance the rest of the picture.