Stage 3 · Launch · Chapter 27

Privacy Policy, Terms and Account Deletion for a SaaS App

What legal pages a SaaS app needs, how to write a privacy policy from your real code, build safe account deletion and data export, and keep it all true.

Dr. Yahia Elkhouli · December 1, 2026 · 7 min read

In September 2026, while working on something unrelated, we discovered that two pages on our website had been dead for months: the privacy policy and the page that explains how to delete your account. Anyone who opened them got stuck in an endless loop of redirects until the browser gave up.

These are not pages customers visit every day. But Google Play reviewers check them, and both app stores require them. And here is the part that still bothers me: we had an automated test that checked those exact addresses on every deploy. It reported "200 OK" every time. The test checked our code. The live website also obeyed a small redirect configuration file, and the test never looked at it.

Legal pages are not documents you write once and forget. They are promises, and a promise is worth something only if it is true, current and reachable.

The short answer

A SaaS app needs four things: a privacy policy, terms of use, account deletion (inside the app and on a public web page), and a way for customers to export their data. Write the policy from an inventory of what your code really collects, update it in the same release as any feature that adds a data flow, and check the live pages after every deploy. I am not a lawyer, so have a lawyer review the final text if you sell in Europe or the United States.

Requirements change, and these were checked in October 2026. Confirm the current rules before relying on them.

Three readers, four documents

Your legal pages have three readers. Customers want to know what you collect, who sees it and how to leave. App store reviewers check that the pages exist, load and match what the app does. Regulators care whether you respect people's rights: under the GDPR in Europe and the UK, and similar laws such as California's CCPA, people can ask for a copy of their data, ask you to correct it and ask you to delete it.

A food label is a good comparison. The label must match what is inside the package. If you change the recipe and add peanuts, the old label becomes dangerous even though nobody touched it. Every new feature can make your policy false: location tracking, an analytics tool, advertising or an ad-measurement pixel all change what you collect.

Step 1: write the policy from your code

Generic templates claim things you do not do and miss things you do. Better: make the AI read your project and list what it really collects, including every phone permission, every third-party service that receives data and every table storing personal information. Then compare that inventory with your current policy.

THE PROMPT
Read my whole project and build an inventory for my privacy policy.
List every phone permission the app requests and the feature that uses it.
List every third-party service that receives any user data (analytics, ads, payments,
email, maps, login providers, error tracking), and exactly which data each receives.
List the database tables that store personal data and what they contain.
Show it as a table, then compare it with my current privacy policy at [PATH OR URL]
and list every sentence that is missing, outdated or false.

Step 2: keep it true as the product grows

THE MISTAKE WE MADE

For months our privacy policy said, in plain words, "we do not collect location data." Meanwhile KashBoss had a live map showing business owners where their field sales reps were. The sentence stayed unchanged while the product grew around it. Google's reviewer reads that page, and a policy that denies something your app plainly does is exactly what gets an app rejected, or worse.

We rewrote the location section when background tracking shipped: location is collected only from field staff who agree to a clear in-app disclosure, tracking shows a permanent notification while the app is minimized, it stops at logout, only authorized people can see it, and it is never shared or used for ads. When we added ads to the free plan, and later told an advertising network about signups to measure our own ads, we updated the policy again. The rule now is that any change adding a permission, an SDK (a third-party code package) or a data flow must update the policy in the same release. Policies drift anyway, so re-run the inventory prompt every few months.

Step 3: make sure the pages actually load

Back to the dead pages. Our redirect file said, in effect, "when someone asks for /privacy, serve /privacy.html." Our host also automatically redirects any address ending in .html to the clean version. So /privacy went to /privacy.html, which went back to /privacy, forever. Our test called the routing code directly and never read the redirect file. The fix was to delete two lines. The lasting lesson was bigger:

A green test is not proof that a page works for real visitors.
THE PROMPT
After this deploy finishes, request these pages from the live website the way a browser would,
following redirects: [LIST YOUR LEGAL PAGE ADDRESSES].
For each, report the final status code, the number of redirects, and the page title.
Flag anything that loops, redirects more than once, or returns a page with the wrong title.
Add this check to my deploy process so it runs automatically every time.

Step 4: account deletion that works, and only for yourself

Apple requires apps that let people create an account to let them delete it inside the app. Google Play requires the same, plus a public web page where people can request deletion without installing the app. In KashBoss the owner deletes the account from settings, after a warning that lists what will be removed and says it cannot be undone.

Deletion turned out to be one of the most dangerous features in the system, for two opposite reasons. During a cleanup review we found that the function behind "delete my account" accepted any account ID it was given, without checking it belonged to the caller. We also found that our admin tool for fully removing a company at a customer's request could not delete a real customer at all, because a safety rule blocked it, and its hand-written list of tables to clean missed 28 of them. Both are fixed. The user function now deletes only the account of the person logged in, identified by their login and never by an ID they send. The admin function discovers every table holding the company's data, removes the rows, counts what is left and undoes everything if anything remains.

THE PROMPT
Review the account deletion feature in my app, from the button to the database.
Confirm a user can only delete their own account, identified by their login, never by an ID they send.
List every table that holds this account's data and confirm each one is cleaned.
Check whether login providers like Apple or Google need their tokens revoked.
Compare the result with what my deletion page and privacy policy promise, and list any differences.
Prove it with a test on a throwaway account.

Be consistent in what you promise. Our deletion page once said both "deleted immediately" and "deleted within 30 days". We changed it to match reality: data is deleted when the owner confirms, and temporary backup copies expire within 30 days.

Step 5: data export and terms

The right to take your data with you is part of the GDPR, and it is also good business. We built a "copy of my data" button that gives the owner one compressed file: a spreadsheet with plain-language sheets, a complete raw copy and a short read-me. The real work was security. Only the owner can export, the server accepts only table names from an approved list, secrets such as PIN codes and tokens are removed, and our own internal billing data is excluded.

Terms of use matter too. Our signup screen said users agreed to the Terms of Use and Privacy Policy, but the words were plain text pointing to a terms page we had never written. If the screen mentions a page, the page must exist and the words must link to it. Chapter 27 of the book also covers the store data forms.

Key takeaways

Frequently asked questions

What legal pages does a SaaS app need?

At minimum a privacy policy, terms of use, an account deletion route inside the app, a public web page explaining deletion for Google Play, and a way for customers to export their data. The policy must list what you actually collect and which outside services receive it.

Can I use an AI-generated privacy policy?

Yes, if the AI drafts it from your real code and you review every sentence. Generic templates tend to claim things you do not do. If you sell in Europe or the United States, have a lawyer review the final text.

Does Google Play require a web page for account deletion?

Google Play requires a way to delete the account inside the app and also a public web page where people can request deletion without installing the app. Apple requires in-app deletion but not a web page.