Before you hand an iPhone back for repair, lease, or sale, back it up, sign out of your Apple ID, then erase it from Settings > General > Transfer or Reset iPhone > Erase All Content and Settings. That single erase wipes your data and removes the device from Activation Lock once you confirm your Apple ID password. Do the steps in order, or you risk leaving an account locked or losing photos you never backed up.
TL;DR
- Back up first: iCloud Backup or a computer backup, and confirm it finished.
- Sign out of Apple ID/iCloud so Activation Lock releases for the next owner.
- Erase with Settings > General > Transfer or Reset iPhone > Erase All Content and Settings.
- Remove the SIM/eSIM and unpair the phone from your Watch and car.
- Erase is thorough on modern iPhones, but it cannot undo data already synced or shared elsewhere.
What order should I do the steps in?
Order matters. If you erase before signing out, the phone can stay tied to Activation Lock and become unusable for the next person.
- Back up. Go to Settings > [your name] > iCloud > iCloud Backup > Back Up Now, or plug into a Mac/PC and back up there. Wait for it to complete.
- Sign out of accounts. Open Settings > [your name], scroll down, tap Sign Out, and enter your Apple ID password. This turns off Find My and releases Activation Lock.
- Erase. Go to Settings > General > Transfer or Reset iPhone > Erase All Content and Settings and confirm.
If you no longer have the phone in hand, you can remove it remotely at iCloud.com > Find Devices > select the device > Erase, then Remove from Account.
How do I make sure my backup actually worked?
A backup you can't restore is no backup. Check Settings > [your name] > iCloud > iCloud Backup and confirm the date and time of the last backup are current. For a computer backup, open Finder (or the Apple Devices app) and verify the latest backup timestamp.
Photos are the most common thing people lose. If your library lives in iCloud Photos, confirm it shows "Synced" and not "Paused" before erasing. If you keep originals only on the device, copy them off first. For the difference between deleting locally and keeping cloud copies, see how to delete photos but keep them in the cloud.
What does iOS do natively, and where does it stop?
Erase All Content and Settings does a lot. On every iPhone with a Secure Enclave (iPhone 5s and later), your data is encrypted, and the erase throws away the encryption key. That makes the stored data unrecoverable in practice, even without overwriting every byte. It also signs you out of iCloud, iMessage, and the App Store, and removes Apple Pay cards.
Where it stops: it only affects the device in your hand. It does not pull back data that already left the phone. Anything you synced to iCloud, shared to other people, posted, or backed up to a shared computer stays where it is. It also won't remove the device from your account if you skipped the sign-out step.
What about the SIM, eSIM, and paired devices?
Remove a physical SIM card and keep it. For an eSIM, decide deliberately: during the erase, iOS asks whether to keep or erase the eSIM. If you're moving to a new phone, keep it and transfer it; if you're handing the phone away, erase the eSIM so your number doesn't travel with it. Also unpair an Apple Watch (do this from the Watch app before erasing), and remove the car from Settings > General > CarPlay if it was a vehicle you won't keep.
What this cannot do (safety note)
Erasing the phone does not change passwords or revoke access on accounts you logged into from elsewhere. If the phone was compromised or you're leaving a shared-account situation, change your Apple ID password and any saved passwords separately, and review trusted devices at appleid.apple.com. Erase also can't recover data after the fact, so never erase until your backup is verified. Returning a phone for repair? Ask whether the repair requires it to stay signed in; if so, use a temporary passcode and remove sensitive apps rather than fully erasing.
FAQ
Does Erase All Content and Settings really delete everything?
On iPhone 5s and newer it effectively does. Your data is encrypted at rest, and the erase destroys the key, so the remaining data can't be read. It's the method Apple recommends before selling or giving away a device.
Do I have to sign out of Apple ID before erasing?
Yes, if you still have the phone. Signing out first turns off Activation Lock so the next owner can set it up. If you already erased without signing out, remove the device from your account at iCloud.com under Find Devices.
Will erasing delete my iCloud photos and files too?
No. Erasing only clears the local device. Files in iCloud stay in your account and on your other devices. That's exactly why verifying your backup and sync status before erasing matters.
Want to check what your phone is exposing before you hand it over? Explore Cleanor's privacy tools to review and clean what's on your device, and get the full workflow with Cleanor for iPhone.