Continue where you left off ×
Delete means delete (a user asks to be forgotten, and the data is in six places)
The Ledger Everyone Reads · Open board
One book on the counter, and several people each keeping their own copy of it: this lesson asks what “erase this page” means once the page has been copied to every one of them.
Before you start. The Ledger Everyone Reads (event-driven & the log) gave you one log that many readers each keep a copy of, which is exactly why a delete is hard here. The copy clerks (database replication) gave you the replica, a second database that repeats every change. Backups and the day you need them (RPO, RTO, and the restore nobody tested) gave you the backup, a copy that deliberately stops following, and it is one of the six places this lesson chases. Data About People told the short version of erasure, and this lesson is the design that makes the promise keepable.
The idea in 30 seconds
“Delete” is a promise that later jobs will clear every copy, and Dropbox in January 2017 showed what a silent skipped job looks like.
An erasure request under the GDPR (in force 25 May 2018, Article 17) must be acted on without undue delay and within a month.
A deleted row survives in six places: the live table, replicas, caches and indexes, logs, backups, and copies outside the building. The slowest retention window decides when it is truly gone.
A tombstone hides a row now and lets compaction remove it later, kept long enough that no replica forgets the delete.
Crypto-shredding gives each person a key and deletes the key, turning every copy in the log and backups into noise at the cost of one small table.
An audit trail proves each step finished, and it must not hold the data it proves was removed.
Read the story
Lesson 71 of 115 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson January 2017: Dropbox, and the files that were never deleted 2014 and 2018: the law asks for the letter back, an erasure request Six places a deleted row survives: the retention window Tombstone: a strike through the name, not a torn page Crypto-shredding: lock each person’s letters in their own box, then burn the key Audit trail: proving you forgot, without remembering who Step 1, requirements Step 2, out of scope Step 3, targets Step 4, estimates that change the design Step 5, entities and API Step 6, storage, with the trade said plainly Step 7, the design, one requirement at a time Step 8, deep dives What each level adds The follow-up: payments must be kept for years Terms it explains: erasure request, retention window, tombstone, soft delete, hard delete, crypto-shredding, audit trail, Common mistakes.
Review System Design
Mark as read Saved in this browser, and to your account when you sign in.