Skip navigation
Most people think: You click “Delete Account” and everything disappears instantly.
0:00

Most people think: You click “Delete Account” and everything disappears instantly.

#systemdesign #backenddevelopment #techinterview

Most people think: You click “Delete Account” and everything disappears instantly. That’s not how large-scale platforms work. ━━━━━━━━━━━━━━━━━━━━ Think about what an Instagram account contains: → Photos → Videos → Messages → Comments → Likes → Followers → Activity history All of this data is spread across multiple databases and storage systems. Deleting everything instantly would be expensive and risky. ━━━━━━━━━━━━━━━━━━━━ Step 1 — Soft Delete When you click: Delete Account Instagram usually marks the account as: “Pending Deletion” The data still exists. But it becomes inaccessible. Result: ✔ Fast user experience ✔ Recovery window if deletion was accidental ━━━━━━━━━━━━━━━━━━━━ Step 2 — Background Jobs A background service starts cleaning data gradually. Example: → Delete photos → Delete videos → Remove comments → Remove relationships This happens asynchronously. Result: ✔ No sudden system load ━━━━━━━━━━━━━━━━━━━━ Step 3 — Data Retention Policies Some data may be retained temporarily for: → Legal requirements → Fraud investigations → Compliance purposes After the retention period expires, the remaining data is removed. ━━━━━━━━━━━━━━━━━━━━ Step 4 — Distributed Cleanup Instagram stores data across many systems. Each service receives a deletion event and removes its own data. Result: ✔ Consistent cleanup across the platform ━━━━━━━━━━━━━━━━━━━━ What Senior Engineers Know Deleting data is easy. Deleting data safely across hundreds of services is the hard part. ━━━━━━━━━━━━━━━━━━━━ Interview Ready Line: “Large-scale platforms typically use soft deletes, background jobs, data retention policies, and event-driven cleanup processes to safely remove user data without impacting system performance.” Follow @codedsoul_05 ❤️ #SystemDesign #BackendDevelopment #TechInterview #Dis

Comments

Comments from the original post on Instagram

No comments yet