Before you sell, swap or give away an iPhone, erase it properly. Just deleting photos isn’t enough, and if you don’t sign out, the next owner will be locked out by Activation Lock.
Step 1: Back up
Settings → your name → iCloud → iCloud Backup → Back Up Now, or back up to a computer. Back up WhatsApp separately in WhatsApp settings.
Step 2: Erase
- Go to Settings → General → Transfer or Reset iPhone.
- Tap Erase All Content and Settings.
- Enter your passcode and your Apple Account password when asked. This signs you out and turns off Find My and Activation Lock.
- Choose whether to erase your eSIM (erase it if selling).
- Wait until the iPhone restarts to the Hello screen.
Forgot the passcode?
You can still erase the iPhone using a computer (recovery mode) or Find My on another device. You will need your Apple Account password afterwards to remove Activation Lock. See forgot your iPhone passcode?.
If you are buying a used iPhone
- Make sure the seller erases it in front of you and you see the Hello screen.
- Check it isn’t asking for someone else’s Apple Account (Activation Lock).
- Read how to check an original iPhone and what to check before buying a used phone.
This guide was checked in October 2026. Menus and services change, so if something looks different on your phone, check with your provider.
Common questions
Does factory reset remove my Apple Account?
Erase All Content and Settings asks you to sign out of your Apple Account, which removes Activation Lock. Do this before selling.
What is Activation Lock?
A security feature that stops anyone using your iPhone without your Apple Account password. If it isn’t removed, the buyer can’t use the phone.
Can I reset an iPhone without the passcode?
Yes, using recovery mode on a computer or iCloud’s Find My, but you need your Apple Account password to remove Activation Lock.
Will resetting remove my eSIM?
You’ll be asked whether to keep or erase your eSIM. Erase it if you are selling the phone.