By Nidhi Bharti and Yogesh Bansal
Thali Box, Ananya and Arjun are fictional. The law is not.
The ticket came in at 11:40 on a Tuesday in June 2027.
"Hi, I've moved cities. Please delete my account and all my data. Thanks, Ananya."
Thali Box is a meal-subscription startup in Pune: 40 people, 60,000 subscribers, one backend engineer on support rotation that week. His name was Arjun, and he did what any of us would do. He opened the admin panel, found Ananya, and hovered over Delete.
Then he stopped. Three weeks earlier, on 13 May 2027, most of the DPDP Rules had come into force, and the CTO had sent round a message that said "we need to be careful now" and not much else.
So Arjun went looking for Ananya instead. By lunch he had found her in seven places:
- The
usersandaddressestables, obviously. - Two years of orders, each with a GST invoice.
- The email marketing tool, where she was still on the "weekend specials" list.
- The WhatsApp vendor that sends delivery updates.
- The product analytics tool, which had her phone number as a user ID. Nobody remembered why.
- The support desk, with eleven tickets and a photo of a cold dal.
- A CSV called
churn_analysis_final_v3.csvon a shared drive, with 60,000 rows of names, phones and addresses. Its link was set to "anyone with the link".
Plus last night's backup, which didn't count as a place until it suddenly did.
Arjun looked at the list, then at the Delete button, and asked the question every developer eventually asks about this law: what exactly am I supposed to do?
1. What the law actually asked of Arjun
Nidhi
The DPDP Act, 2023 is short, and its answer to Arjun's question is shorter than most people expect: erase, unless the purpose or another law still needs the data. Everything else is detail. But the detail is where the engineering lives, so let's walk through his list.
Her request. Ananya has a right to erasure (Section 12(1) and (3)). Thali Box must erase her data unless it is still needed for the purpose she gave it for, or another law requires it to be kept. She also gets to withdraw her marketing consent, and that has to be about as easy as giving it was (Section 6(4)).
The invoices. These stay. Section 8(7) carves out "compliance with any law", and tax law requires invoices to be kept for years. The Act's own illustration is a bank keeping KYC records for ten years after an account closes. What doesn't stay is everything else that happens to sit next to the invoice.
The vendors. Deleting the row in Thali Box's database does nothing to the email tool, the WhatsApp vendor or the analytics platform. Section 8(7)(b) says the company must cause its processors to erase, and Section 8(1) keeps Thali Box responsible for anything they do on its behalf.
The phone number in analytics. Consent has to be limited to the data the purpose actually needs (Section 6(1)). "Nobody remembers why" is not a purpose.
The one-year surprise. Rule 8(3) says that for any processing, the company must keep the personal data, traffic data and processing logs for at least a year, for the government purposes listed in the Seventh Schedule, and then erase them. The Rule's own example is an e-book platform keeping order records "even if X deletes her account". So "delete my account" doesn't mean one query. It starts a schedule.
The weekend-specials list. If Ananya ever complains to the Board that she never agreed to that, Section 6(10) puts the burden of proof on Thali Box: show the notice she saw and the consent she gave. Her checkbox dates from 2025, before the Act applied, so Section 5(2) also requires Thali Box to send her a fresh notice as soon as reasonably practicable. A checkbox with no record of the screen is not much to show.
The CSV. This is the one that should end Arjun's lunch. A "personal data breach" includes accidental disclosure that compromises the confidentiality of personal data (Section 2(u)). If that file was opened or shared outside the company, Section 8(6) and Rule 7 apply. Each affected person and the Board must be told without delay, and the Board gets a detailed report within 72 hours of the company becoming aware. That could be 60,000 notices, all because of one file.
The reply. When Arjun writes back to Ananya, the reply must include contact details for someone who can answer her questions about her data (Rule 9). If she's unhappy, she can raise a grievance. Thali Box publishes how long it takes to respond, and the Rules cap that at 90 days (Rule 14(3)). She must use that route before she can go to the Data Protection Board (Section 13(3)).
2. How Thali Box got here: three ordinary mistakes
Nidhi and Yogesh
Nobody at Thali Box was careless. They made the same three decisions most fast-growing teams make, each sensible on the day.
Consent was a column. marketing_opt_in: true, set at sign-up. No record of what the screen said, which version, which language, or when. It worked fine for sending emails. As evidence under Section 6(10), it's close to useless.
Yogesh: I've shipped this one myself. In an app I worked on, consent was a single field:
consent_given, true or false. It told us whether to send the email. It couldn't tell us what the person agreed to, when, or what the screen said, which is exactly what Section 6(10) asks you to prove.
Erasure was a query. The team's mental model of deletion was DELETE FROM users WHERE id = ?. In reality, Ananya's data had spread to every tool that touched her, plus a backup and a spreadsheet. Meanwhile, the data that should have gone years ago, like old exports and stale analytics IDs, never did. Teams tend to get erasure wrong in both directions at once: too little when someone asks, too much kept when nobody does.
Yogesh: In that same app, when a user asked to be deleted, we deleted everything. It felt like the right thing, and it was what the user wanted. From May 2027 it won't always be: invoices may have to stay for as long as tax law requires, and Rule 8(3) asks for a year of records of processing before they go. "Delete everything" and "delete nothing" are both one query. The law asks for a schedule.
Breaches were someone else's problem. Thali Box had a security policy. It didn't have a way to answer the question Rule 7 depends on: who was affected? Without access logs, nobody could say whether that CSV link had been opened once or a thousand times. And "we'll tell people in 72 hours" is wrong twice over. Affected people and the Board hear without delay; the 72 hours is only for the detailed report to the Board.
3. The rebuild: what Arjun shipped next
Yogesh
Arjun didn't start with the Delete button. He started with a file.
One map of the data. He used dpdp-kit, the free library I maintain. npx dpdp-kit init drafted a config file from his database schema, and he filled in the purpose of each personal field and the legal basis for each purpose. The phone number served the account and order updates, a Section 7(a) legitimate use. "Weekend specials" needed consent. Then he added dpdp-kit audit --schema to CI. Now a new phone or email column with no stated purpose fails the build. The analytics phone number wouldn't survive review either: the map says which purposes the phone serves, and analytics isn't one of them.
Consent became a record, not a column. marketing_opt_in: true became a chain of events. Each grant and withdrawal records the notice version Ananya saw, its language and the channel. Each event is hashed with the one before it, so an edited or deleted record shows up. That proves the record wasn't changed. Whether the notice itself was good enough was still Thali Box's job.
"Delete my account" became a schedule. erasure.deleteAccount() now produces a plan instead of running a query:
- Her vendors are told to stop at once.
- Her profile and addresses are erased once the Rule 8(3) year is up.
- Her invoices stay under a legal hold for as long as tax law requires, and are then anonymised.
A retention runner works through these tasks every night and retries any that fail.
Vendors in the loop. Each processor in the config has a stop hook and an erase hook. The email tool unsubscribes her, the WhatsApp vendor deletes the contact, and the analytics tool deletes the user. A vendor with no API becomes a manual task with a due date, so nobody forgets it.
An access log. Support reads of customer records now go through logAccess, and a daily review flags reads outside a field's purpose. If someone misuses that access, the log shows whose records they opened, and a breach record tracks the 72-hour deadline for the Board's report.
What it didn't do. dpdp-kit doesn't connect to Consent Managers yet. It couldn't find the CSV on the shared drive, and it doesn't make decisions. Every purpose, retention period and legal hold in that config is a judgement someone at Thali Box has to make, and own.
4. What no tool could decide for Arjun
Nidhi
Good tooling turned Arjun's afternoon of grepping into a config and a queue. But look again at his list, because five of its questions were never engineering questions.
- Is the CSV a breach? It depends on facts: who had the link, whether anyone outside opened it, and what the logs show. Then come judgement calls about what to tell 60,000 people and the Board. That's a decision for leadership with legal advice, made fast.
- What exactly must the invoice keep? Tax law decides which fields stay and for how long. A legal hold in code is only as right as the person who set it.
- Is "weekend specials" consent or a legitimate use? Whether a use fits Section 7 or needs consent is a judgement about the business, and a notice that people actually understand is a writing problem (Rule 3).
- Are the vendors doing their part? Section 8(2) requires a valid contract with each processor. Someone has to read those contracts and check where the vendor really processes the data.
- What do we say to Ananya? She is a customer, not a ticket. The reply, the tone and the timeline are human choices.
So when should a team like Thali Box call a lawyer, rather than read another blog post? Before launch, to check purposes, notices and consent flows. When setting retention periods and legal holds. When signing vendor contracts, especially with vendors abroad. If children use the product (Section 9). If you're relying on an exemption (Section 17). And the moment something like that CSV turns up.
Tools make you consistent. Only people make you right.
Your turn: five checks for this week
You don't need a compliance programme to start. You need an hour and a test account.
- Find yourself. Make a test user, use the product for a day, then list every table, tool, vendor, log and spreadsheet that ends up holding that user. Most teams find more than seven.
- Ask your consent table one question. For any user, can you show which notice they saw, its version and language, and when they agreed? If not, start recording it now.
- Run "delete my account" on paper. Write down what happens to each item on your list: erased now, erased later, kept under a legal hold, or kept for the Rule 8(3) year. Anything with no answer is your backlog.
- Search the shared drives. Look for exports with personal data and "anyone with the link" sharing. Then check who can open production data, and whether you'd know if they did.
- Time a fake breach. Pick a date and ask: how long until we know who was affected, and who writes to the Board? If the answer is "we'd figure it out", you have until 13 May 2027 to figure it out properly.
Ananya, by the way, got her reply that afternoon. The CSV link was turned off by 3 p.m. Whether that was in time is the kind of question you'd rather not be answering.
About the authors
Nidhi Bharti is the founder of Bhaviyo, a DPDP and AI governance consultancy for Indian SaaS teams. She is a software engineer with an LLB and does not practise law. Parts 1 and 4 are hers.
Yogesh Bansal builds dpdp-kit, a free, open-source toolkit for building the DPDP Act and Rules into Node.js apps. Every Section and Rule it cites links to the text behind it, and the code is free to use under MIT or Apache-2.0. Part 3 is his.
Thali Box and everyone in it are fictional. This article is general information, not legal advice.
Sources
- The Digital Personal Data Protection Act, 2023 (No. 22 of 2023), Gazette of India Extraordinary, 11 August 2023
- The Digital Personal Data Protection Rules, 2025, G.S.R. 846(E), 13 November 2025, and Corrigendum G.S.R. 892(E), 10 December 2025
- dpdp-kit: site, Who does what
Top comments (0)