# Check this app against App Store Review Guideline 5.1.1(v): Account Deletion

If people can create an account in the app, they can start deleting it there too.

Go through this codebase for each problem below. For each one that applies, fix it on a new git branch with the steps for this app's stack (React Native and Expo, Swift, or Flutter). If none apply, say so and why.

## Accounts can be created but not deleted in the app

Usually a rejection.

**What Apple wants:** Apps that let people create an account must let them start deleting it from inside the app (Guideline 5.1.1(v), enforced since June 2022). A support email or a web form on its own isn't enough.

**How to fix it:** Add a Delete account option in the app's settings that deletes the account and its data.

Steps for React Native, Expo and Swift:

1. Add a "Delete account" button in the account or settings screen. It should be easy to find, not hidden behind support.
2. Confirm once ("This deletes your account and data"), then call your backend to delete the account and its data, and sign the person out.
3. If they signed in with Apple, revoke the token with Apple's REST API so the account is fully removed.

Steps for Flutter:

1. Add a "Delete account" button in the account or settings screen. It should be easy to find, not hidden behind support.
2. Confirm once with a dialog ("This deletes your account and data"), then delete the account and its data (FirebaseAuth.instance.currentUser?.delete(), or a call to your backend), and sign the person out.
3. If they signed in with Apple, revoke the token with Apple's REST API so the account is fully removed.

## Nothing works without an account

Often a rejection.

**What Apple wants:** undefined Guideline 5.1.1(v) asks an app without significant account-based features to "let people use it without a login": only what needs an account may ask for one. Reviewers reject sign-in walls in front of content that works without an account. An account-based app (a social network, messaging, people's data synced across their devices, an existing service's customers) may ask first, and the run didn't take this app for one.

**How to fix it:** Let people look around before signing up, and ask for an account only where the feature needs one.

Steps:

1. List what works without an account (browsing, a demo, a first use).
2. Add "Not now" or "Continue without an account" on the sign-in screen, leading there.

## The test run needs a test account to delete

Often a rejection.

**What Apple wants:** undefined Reviewers may delete an account to check it's really gone (Guideline 5.1.1(v)); the run checks the same with an account you can lose, never App Review's demo account.

**How to fix it:** Add a test account the run may delete, under Test run → Accounts, and run the test again.

Steps:

1. Create a test account in your app that you can lose: not App Review's demo account.
2. Add it under Test run → Accounts as the account to delete, then run the test again.

## Couldn't find a way to delete the account

Usually a rejection.

**What Apple wants:** Apps that let people create an account must let them delete it from inside the app (Guideline 5.1.1(v)). The run looked through the settings and account screens and found no option.

**How to fix it:** Add "Delete account" to Settings (or the account screen), which deletes the account and its data.

Steps:

1. Add a "Delete account" button in Settings → Account, with a confirmation.
2. Delete the account and its data on your backend (not just sign out); revoke Sign in with Apple tokens if used.

## The run couldn't confirm deleting an account works

Often a rejection.

**What Apple wants:** undefined Reviewers may delete an account to check it's really gone (Guideline 5.1.1(v)).

**How to fix it:** Delete a test account yourself in the app, then try signing in with it again: it should be refused.

Steps:

1. Create a test account, sign in with it, and delete it from inside the app.
2. Sign in again with the same email and password: it should be refused.

## Deleting the account doesn't delete it

Usually a rejection.

**What Apple wants:** undefined Apps must let people delete their account from inside the app, not only sign out or deactivate it (Guideline 5.1.1(v)). The run used a test account you gave it, never the demo account.

**How to fix it:** Make "Delete account" delete the account and its data on your backend, then sign the person out.

Steps:

1. Find what the delete action calls: deleting on the server, not just signing out or hiding the account.
2. Delete the account and its data on your backend (and revoke Sign in with Apple tokens), then sign out and show the start screen.
3. Run the test again with a new test account.

## Sign-in may be required before anything works

Often a rejection.

**What Apple wants:** When the core features don't depend on an account, people must be able to use them without signing in (Guideline 5.1.1(v)). Reviewers reject login walls in front of features that don't need one.

**How to fix it:** Let people use what needs no account first, and ask for sign-in only when a feature does.

Steps:

1. Make the screens that work without an account reachable signed out.
2. Ask for sign-in at the moment a feature needs it (saving, syncing, sharing).

## People may have to create an account before they can buy

Often a rejection.

**What Apple wants:** App Review rejects apps that make people register before an in-app purchase that doesn't depend on an account: its rejection messages cite Guideline 5.1.1, whose 5.1.1(v) asks apps to let people use what needs no account without a login. Reviewers try to buy without signing up and reject the app if they can't.

**How to fix it:** Let people buy without an account, and offer optional sign-up to sync across devices.

Steps:

1. Allow the purchase without signing in; restoring works through the App Store account.
2. Offer an optional account afterwards for syncing across devices.

## 'Delete account' may not actually delete the account

Usually a rejection.

**What Apple wants:** Apps that let people create an account must let them delete it, and its data, from inside the app (Guideline 5.1.1(v)). Reviewers tap the button; signing out, deactivating or emailing support isn't enough.

**How to fix it:** Make 'Delete account' delete the account and its data, or start that process, from the app.

Steps:

1. Call your backend to delete the account and its data once the person confirms.
2. Sign them out and say it's done, or when deletion will finish.
3. If they used Sign in with Apple, revoke their Apple token as part of deletion.

## A failed account deletion may show nothing

Often a rejection.

**What Apple wants:** Reviewers delete the test account to check Guideline 5.1.1(v). If the delete call fails and the app says nothing, it looks like deletion doesn't work, which gets the app rejected the same way as having none.

**How to fix it:** Show an error when deletion fails, with a way to try again, and confirm when it succeeds.

Steps:

1. Show the error the delete call returns on the screen the person is on, with a Try again button.
2. Confirm success, then sign the person out.
3. Make sure whatever the delete calls on your server is deployed, so a reviewer's deletion goes through.

## People without a subscription may not reach account deletion

Often a rejection.

**What Apple wants:** Everyone with an account must be able to delete it in the app (Guideline 5.1.1(v)). A paywall that covers settings leaves people who stopped paying, and a reviewer whose test subscription ran out, with no way to do it.

**How to fix it:** Give the paywall or locked screen a way to account settings, or a Delete account link.

Steps:

1. Add a small Settings or Account link to the full-screen paywall.
2. Make sure Delete account works there without a subscription.

## Guest accounts may have no way to be deleted

Often a rejection.

**What Apple wants:** Apple counts an account the app creates for someone, guest or not, as an account they must be able to delete in the app (Guideline 5.1.1(v)). Reviewers often stay a guest, and find no way to delete what they made.

**How to fix it:** Show Delete account to guests too, and delete their data on the server.

Steps:

1. Show the delete option to anyone with a server account, guest included.
2. Delete the guest user and everything saved under it on your server.

## Accounts created through sign-in may not be deletable in the app

Usually a rejection.

**What Apple wants:** Signing in with Apple or Google creates an account, and every account made in the app must be deletable from inside the app (Guideline 5.1.1(v)). Reviewers look for the option in settings and reject the app when it's missing.

**How to fix it:** Add a Delete account option to settings that deletes the account and its data.

Steps:

1. Add "Delete account" to the account or settings screen, easy to find.
2. Confirm once, delete the account and its data on your backend, then sign the person out.
3. Revoke the Sign in with Apple token as part of the deletion.

## Account deletion may be put off for a long time

Delays review.

**What Apple wants:** Apple expects an account deleted in the app to go away without an unreasonable wait (Guideline 5.1.1(v)). A deletion that waits for a subscription to end can take a year.

**How to fix it:** Delete the account soon after it is asked for, and tell people their App Store subscription is separate.

Steps:

1. Delete the account and its data within a short window instead of waiting for the subscription to end.
2. Tell people to cancel the subscription in their Apple account settings, since deleting the account doesn't.

## Deleting an account may not revoke the Sign in with Apple token

Often a rejection.

**What Apple wants:** When someone deletes an account they made with Sign in with Apple, Apple expects the app to revoke the Apple tokens too, as part of account deletion (Guideline 5.1.1(v)). Reviewers rarely test it, but it's required.

**How to fix it:** Revoke the Apple token when the account is deleted.

Steps:

1. Keep the Apple refresh token (or authorization code) on your server at sign-in.
2. When the account is deleted, call Apple's token revocation endpoint.

## Sign-up may require personal details the app doesn't need

Often a rejection.

**What Apple wants:** Apps can't require personal information unless a core feature needs it or the law does (Guideline 5.1.1(v)). Reviewers reject required fields like gender, birthday or phone number that nothing uses.

**How to fix it:** Make those fields optional, or remove them.

Steps:

1. Mark details the app doesn't need as optional, with a visible Skip.
2. Remove fields nothing uses.

## A social network login may be the only way into the app

Often a rejection.

**What Apple wants:** Unless an app's core features are about a specific social network, people must be able to use it without that network's login, signed out or with another sign-in (Guideline 5.1.1(v)). Importing a profile, sharing or inviting friends doesn't count as core.

**How to fix it:** Add another way in, such as Sign in with Apple or email, or let people start without signing in.

Steps:

1. Add Sign in with Apple or email sign-in next to the social login.
2. Let people use features that need no account without signing in.

## A linked social account may have no way to disconnect

Delays review.

**What Apple wants:** Apps that link to someone's social network account must let them cut that link and stop the data access from inside the app (Guideline 5.1.1(v)).

**How to fix it:** Add a Disconnect option that revokes the access and stops syncing.

Steps:

1. Add "Disconnect" next to each linked account in settings.
2. On tap, revoke or delete the stored token and stop any syncing.

## Social network tokens may be stored or used off the device

Delays review.

**What Apple wants:** Social network logins and tokens have to stay on the device, and the app may only use them to reach that network while it's open (Guideline 5.1.1(v)).

**How to fix it:** Keep social network tokens on the device and call the network from the app.

Steps:

1. Store social tokens only in the device keychain.
2. Move server-side posting or syncing into the app, while it is in use.

## Automatic guest accounts may not be deletable in the app

Often a rejection.

**What Apple wants:** Apple counts accounts an app creates automatically, like guest or anonymous accounts, as accounts. If they keep personal data on a server, people must be able to delete them in the app (Guideline 5.1.1(v)), and reviewers check.

**How to fix it:** Add a delete option that removes the guest account and its data.

Steps:

1. Add 'Delete account' (or 'Delete my data') to settings, for guest users too.
2. On confirmation, delete the account and its data on the server, then reset the app.

## Account deletion may be offered only in some regions

Often a rejection.

**What Apple wants:** Apple requires account deletion for everyone who can create an account, not only where a privacy law demands it (Guideline 5.1.1(v)). Reviewers test from regions and sign-in methods your check may leave out.

**How to fix it:** Show account deletion to every user, whatever their region or sign-in method.

Steps:

1. Remove the region or sign-in-method check around the delete-account option.
2. Make sure deletion works for accounts created with every sign-in method.

## Deleting an account may not warn that the subscription keeps billing

Often a rejection.

**What Apple wants:** Deleting an account doesn't cancel an App Store subscription. Apple asks apps to tell subscribers that billing continues and how to cancel (Guideline 5.1.1(v)), and reviewers look for it in the deletion flow.

**How to fix it:** Tell subscribers in the deletion flow to cancel their subscription, with a way to manage it.

Steps:

1. Before the final confirmation, say that the App Store subscription continues until it is cancelled.
2. Add a button that opens subscription management (StoreKit's manage subscriptions sheet, or the App Store subscriptions page).

---

AppScend checks an app against every guideline at once, on the developer's Mac: `npx appscend scan --json` in the app's root folder (docs: https://appscend.ai/docs).

Source: https://appscend.ai/guidelines/5-1-1-v
