What happens when you erase an iPhone
Erasing an iPhone removes all your personal data — photos, messages, contacts, passwords, payment information, and everything else stored on the device — and restores it to factory settings. The phone becomes blank, as if it just came out of the box. This is different from simply deleting individual files; a factory reset wipes the entire system.
The reason to do this before selling or giving away your phone is straightforward: without erasing it, the new owner can access your accounts, photos, and financial information. Even deleted files can sometimes be recovered from a phone's storage, so a full erase is the only reliable way to protect your privacy.
Key Takeaways
- Back up your iPhone to iCloud or a computer before erasing, or you will lose all your data permanently.
- Sign out of iCloud and remove the device from your Apple ID account before erasing, or the new owner will be locked out of the phone.
- Use Settings > General > Transfer or Reset > Erase All Content and Settings to wipe the phone completely.
- After erasing, the phone will ask for the Apple ID password one more time — this is normal and prevents theft.
Back up your data before you erase
Once you erase your iPhone, the data is gone. Before you start, decide what you want to keep. Most people back up to iCloud, Apple's cloud storage service, which saves photos, messages, contacts, calendar events, and app data.
To back up to iCloud, go to Settings > [Your Name] > iCloud and turn on iCloud Backup. Then go to Settings > [Your Name] > iCloud > iCloud Backup and tap Back Up Now. The backup runs in the background and can take several minutes depending on how much data you have and your internet speed.
If you prefer to back up to a computer instead, connect your iPhone to a Mac or Windows PC with a USB cable, open Finder (Mac) or iTunes (Windows), select your phone, and click Back Up Now. This creates a local copy on your computer rather than in the cloud.
Sign out of iCloud and remove your Apple ID
This step is critical. If you erase the phone without signing out of iCloud first, the new owner will see an Activation Lock screen asking for your Apple ID password every time they try to set up the phone. They will not be able to use it until you remove it from your account.
Go to Settings > [Your Name] at the top of the screen. Scroll down and tap Sign Out. You will be asked for your Apple ID password — enter it. Choose whether to keep a copy of your iCloud data on the phone (usually you want to say No, since you are erasing it anyway). Then tap Sign Out again to confirm.
After signing out, go back to Settings > [Your Name] and verify that your name no longer appears at the top. If it still shows your account, the sign-out did not complete.
Erase all content and settings
Now that you have backed up your data and signed out of iCloud, you can safely erase the phone. Go to Settings > General. Scroll down and tap Transfer or Reset. Then tap Erase All Content and Settings.
The phone will ask you to confirm and may ask for your passcode or Apple ID password one more time. Enter it. The erasing process then begins — the phone will show a progress bar and may restart several times. This can take 10 to 30 minutes depending on how much data was on the phone.
Do not turn off the phone or disconnect it from power during this process. Let it finish completely. When it is done, you will see the setup screen, the same one you saw when you first bought the phone.
What to do after erasing
Once the erase is complete, the phone is ready to hand over. The new owner will set it up with their own Apple ID and data. If you are selling the phone, this is the point to hand it over or ship it.
If you kept the phone for yourself and want to set it up again with your own data, you can sign back in with your Apple ID during setup and restore from the backup you created earlier. Choose Restore from iCloud Backup or Restore from Mac/PC, depending on where you backed up.
Removing the phone from your Apple ID account online
Even after erasing and signing out, your phone may still be listed in your Apple ID account under Devices. This does not affect the new owner, but you may want to remove it to keep your account clean.
Go to appleid.apple.com on any computer or phone, sign in with your Apple ID, and click Devices. Find the iPhone you erased, click it, and select Remove from Account. This unlinks the phone from your Apple ID permanently.
What if you forgot your passcode or Apple ID password
If you cannot remember your passcode, you will need to use Find My iPhone to erase the phone remotely. Go to iCloud.com, click Find My, select Find My iPhone, sign in with your Apple ID, find the phone in the list, and click Erase. This erases the phone without needing the passcode, but it does require your Apple ID password.
If you forgot your Apple ID password, you can reset it at iforgot.apple.com. You will need access to the email address or phone number associated with your account. Once you reset the password, you can sign out of iCloud and erase the phone normally.
Frequently Asked Questions
Can the new owner recover my data after I erase the phone?
No. A factory reset on an iPhone overwrites the storage in a way that makes recovery extremely difficult. Unlike some Android phones, iPhone erasing is considered secure enough that data recovery is not a practical concern for most people.
What if I erase the phone but forget to sign out of iCloud first?
The new owner will see an Activation Lock screen asking for your Apple ID password. You can fix this by signing into appleid.apple.com, going to Devices, finding the phone, and clicking Remove from Account. This unlocks it remotely.
Do I have to back up before erasing?
No, but you should. If you erase without backing up, all your photos, messages, and other data are gone permanently. Back up to iCloud or a computer first, then erase.
How long does erasing take?
Usually 10 to 30 minutes, depending on how much data is on the phone and how fast your phone is. Older iPhones may take longer. Keep the phone plugged in and do not interrupt the process.
Can I erase my iPhone remotely if I no longer have it?
Yes. Go to iCloud.com, click Find My, select Find My iPhone, sign in, find the phone, and click Erase. This works as long as the phone is turned on and connected to the internet.