What the agent does
Users of the production site should be able to get a copy of their data and delete their account without emailing anyone, and the deletion should reach every place their data lives. Privacy laws give many users this right, app stores require deletion, and it is a strong trust signal at launch.
1. Find every place user data lives
From the schema and code, list every table, column, file store, search index, cache and third-party service (email, analytics, payments, CRM) that holds data tied to a user. Mark which rows are personal, which must be kept by law (invoices, tax records) and which are shared (comments other people replied to).
2. Export
Add a self-serve export from account settings that produces a machine-readable file (JSON, with CSV where it helps) of the user's own data, generated on request and delivered by a signed, expiring link or a direct download. Exclude other users' personal data and internal fields.
3. Delete
Add account deletion from settings with a clear explanation and a confirmation step (re-enter the email or password). Delete or anonymise every personal row, uploaded files, and sessions; call third-party deletion APIs where they exist; keep only what the law requires, linked to an anonymised id. Cancel active subscriptions first.
4. Say what happens
Show what is deleted, what is kept and why (invoices, for example), and how long backups take to roll over. Add a test that deletion removes the user's personal rows from every table in the inventory.
Done means
- Every place user data lives is listed, with what must be kept and why.
- Users can export their own data from settings.
- Users can delete their account from settings, and deletion reaches every table, file and third party listed.
- A test proves deletion removes personal rows from every listed table.
Questions
Can I just mark accounts as deleted?
Soft deletion keeps personal data, which most privacy laws do not accept as deletion. Remove or anonymise the personal fields, and keep only what you must.
What about backups?
Backups usually cannot be edited, so deleted data disappears as old backups roll over. Say how long that takes in your policy.
Do app stores require account deletion?
Apple and Google both require apps that let people create accounts to let them delete them from within the app.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.