Pattern: Data export and account deletion

Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.

Search terms: data export, data download, account deletion, delete account web, google play account deletion, app store account deletion, data portability, re-authentication

Last reviewed:

For agents

1. Problem

People want a copy of their data and a way to leave. Stores require account deletion for apps that create accounts. Badly built flows leak account existence, let a thief with a stolen session delete or download everything, or promise deletion that does not happen.

2. Options

Topic Option Upside Downside
Deletion entry In app only Simple Google Play also requires a web link; people without the app are stuck
Deletion entry In app and web (recommended) Meets Google Play and Apple rules A second flow to build and secure
Export format Machine-readable plus human-readable (recommended) Reusable and understandable More work
Export format One human-readable PDF Easy to read Hard to reuse elsewhere
Export delivery Time-limited link No data kept in mail User must act in time

Store rules. Google Play’s account deletion policy says apps that allow account creation must give users an in-app path to delete their account and associated data and also provide a web link where users can request deletion; the link goes into the Data safety form. Apple App Review Guideline 5.1.1(v) requires apps that support account creation to let people initiate account deletion from within the app. Check both pages for current text before release.

Data export

Account deletion

4. Scenarios and edge cases

5. Common mistakes

6. How to audit

Sources