A user clicks "Delete my account" in your app. The screen says it worked. They are gone from the login page.
But their profile is still in the database. Their uploaded files are still in storage. Their email is still on your mailing list, and their name still appears in your logs and analytics.
Why it happens
AI builders usually write account deletion as one action: remove the user row, or just set a flag like deleted = true. Data about that user lives in many places: other tables, file storage, third-party tools, backups. A delete that touches only one place leaves the rest.
For you it matters because people expect deletion to mean deletion, and in many places the law expects it too. I am not a lawyer, so check the rules that apply to you.
How to check your own app
- Create a test user. Add some data: a profile, an upload, a few records, a subscription if you have one.
- Delete that account from the app's own settings page.
- Look in your database. Search every table for the test user's id and email.
- Look in your file storage for the files they uploaded.
- Check third-party services you send data to: email tool, analytics, payment provider, support inbox.
- Try signing in again with the old session, an old reset link and an old API token. All of them should fail.
What to look for
- A deleted flag instead of a real delete, with the data still readable through some route.
- Rows in other tables that still point at the old user id.
- Files left in storage buckets after the account is gone.
- Old sessions and tokens that still work.
- The same email address still in your mailing list.
How to fix it
- Decide what "delete" means for your app and write it down: what is removed now, what is kept and why, and for how long.
- Remove or anonymise rows in every table that holds the user's data. Use cascading deletes or one cleanup function, so no table gets forgotten.
- Delete the user's files from storage.
- Revoke every session and token when the account is deleted.
- Send the delete request to the third-party tools you use.
A prompt you can paste into your AI builder
"Find every table, storage bucket and third-party service that holds data about a user in this project. Write one account deletion function that removes or anonymises that data, revokes all sessions and API tokens, and removes the user's uploaded files. List anything it cannot delete automatically so I can handle it by hand. Add a test that creates a user, deletes them, and checks that no row or file refers to them."
What a scanner can and cannot tell you
An outside scan of your public pages cannot create an account or delete one, so it cannot see what is left behind. Checking deletion means using your own app with a test user, as above.
I work on ProofForge. The free scan covers what a visitor can see and says plainly what it could not check.
Check your own app from the outside, free. Run the free ProofForge scan on your live URL. No account needed for the first scan. It looks at your public site the way a stranger would and says pass, fail or inconclusive, so you know what is confirmed and what it could not see. One-time reports start at $9: see pricing. Building with an AI agent? There is an MCP server so it can check before it deploys.
Top comments (0)