What happens when you erase an iPhone
Erasing your iPhone removes all your personal data — photos, messages, contacts, passwords, payment information, and apps — and reinstalls a fresh copy of iOS. The phone returns to the state it was in when it left the factory, with no trace of your accounts or files. This is different from simply signing out of iCloud or deleting individual apps; a full erase wipes everything.
Apple's erase process uses encryption to make deleted data unrecoverable. When you erase, the phone destroys the encryption keys that protect your data rather than overwriting each file individually. This means the data is gone even if someone tries to recover it with specialized tools — they would have nothing to decrypt.
You should erase your iPhone before you sell it, give it away, or turn it in for recycling. You should also erase it if you're moving to a new phone and want to make sure nothing is left behind. The process takes 10 to 30 minutes depending on how much data is on the phone.
Key Takeaways
- Sign out of iCloud and your Apple ID before erasing, or the phone will be locked to your account and unusable by anyone else.
- Back up your iPhone first if there is anything on it you want to keep — erasing is permanent and cannot be undone.
- The erase process is built into Settings under General > Transfer or Reset, and you do not need a computer or any special tools.
- After erasing, the phone will ask you to set it up as new or restore from a backup — do not restore if you want it to stay blank.
Sign out of iCloud and Apple ID before you erase
Before you erase, you must sign out of iCloud and your Apple ID. If you do not, the phone will be locked to your account after the erase is complete. This is Apple's anti-theft protection — it prevents someone who steals your phone from erasing it and selling it. But it also means that if you erase without signing out first, the new owner cannot use the phone without your password.
To sign out, go to Settings > Your Name (at the top) > Sign Out. You will be asked for your Apple ID password. Enter it. Then choose whether to keep or delete a copy of your iCloud data on the phone — this does not affect what is stored in iCloud itself, only what remains on the device. After you sign out, you can proceed with the erase.
If you have already erased the phone without signing out first, it will show an "Activation Lock" screen asking for the Apple ID password. You will need to enter the password or contact Apple Support to remove the lock before the phone can be used.
Back up your data if you need to keep it
Erasing your iPhone is permanent. Once you erase, you cannot undo it. If there is anything on the phone you want to keep — photos, messages, notes, or settings — you must back it up before you erase.
The easiest way to back up is through iCloud. Go to Settings > Your Name > iCloud > iCloud Backup and turn it on. Then go back and tap Back Up Now. The backup will upload to your iCloud account and stay there even after you erase the phone. When you set up a new iPhone, you can restore from this backup and get all your data back.
You can also back up to a Mac or Windows computer using Finder (on Mac) or iTunes (on Windows). Connect the phone with a USB cable, open Finder or iTunes, select your phone, and click Back Up Now. This creates a local copy on your computer that you can restore from later.
Erase the iPhone through Settings
To erase your iPhone, go to Settings > General > Transfer or Reset. On older iPhones running iOS 16 or earlier, this section is called Reset instead of Transfer or Reset. Tap Erase All Content and Settings.
The phone will ask you to confirm. It will also ask for your Apple ID password and your device passcode if you have one set. Enter both. Then tap Erase to begin. The phone will show a progress bar and may restart several times. Do not turn off the phone or disconnect it from power during this process — let it finish on its own.
The erase usually takes 10 to 30 minutes. When it is done, the phone will show the setup screen as if it just came out of the box. At this point, the erase is complete and all your data is gone.
What to do after the erase is complete
After the erase finishes, your iPhone will display the setup screen. You have two choices: set it up as a new phone, or restore from a backup.
If you are selling or giving away the phone, do not restore from a backup. Instead, leave it on the setup screen or power it off. The new owner can then set it up with their own Apple ID and data. If you restore from a backup at this point, you will put all your old data back on the phone, which defeats the purpose of erasing it.
If you are moving to a new iPhone and want to keep your data, restore from the backup you created earlier. You can restore from iCloud by signing in with your Apple ID during setup, or from a computer backup by connecting to the computer you backed up to. Either way, your photos, messages, apps, and settings will be restored to the new phone.
Erase a locked or disabled iPhone
If your iPhone is disabled (locked after too many wrong passcode attempts) or you have forgotten your passcode, you cannot access Settings to erase it. In this case, you can erase it through a computer or through Find My iPhone.
To erase through Find My iPhone, go to iCloud.com on another device and sign in with your Apple ID. Click Find My, select your iPhone from the list, and click Erase iPhone. This will erase the phone remotely, even if it is locked. The phone must be connected to the internet for this to work.
To erase through a computer, connect the locked iPhone to a Mac or Windows PC with a USB cable. Open Finder (Mac) or iTunes (Windows), select your phone, and click Restore. This will erase the phone and reinstall iOS. You will need your Apple ID password to complete the restore.
Frequently Asked Questions
Can someone recover my data after I erase my iPhone?
No. Apple's erase process destroys the encryption keys that protect your data, making it unrecoverable even with specialized tools. The data is gone permanently. This is different from simply deleting files, which can sometimes be recovered — a full erase cannot be.
What if I erase my iPhone but forgot to sign out of iCloud first?
The phone will be locked to your Apple ID after the erase. You will see an Activation Lock screen asking for your Apple ID password. You must enter your password or contact Apple Support to unlock it. The new owner cannot use the phone without this step, so contact Apple if you no longer have access to the account.
Do I need a computer to erase my iPhone?
No. You can erase through Settings on the phone itself. You only need a computer if the phone is locked or disabled and you cannot access Settings. In that case, you can erase remotely through Find My iPhone or through a computer with Finder or iTunes.
Will erasing my iPhone remove it from my Apple ID account?
Erasing the phone removes the data from the device, but the phone remains registered to your Apple ID until you sign out first. Always sign out of iCloud and Apple ID before erasing if you are giving the phone to someone else. If you forget, the new owner will need your Apple ID password to use the phone.
Can I erase just some of my data instead of everything?
No. The erase function removes all data at once. If you want to keep some data, back it up before erasing, then restore only what you need after the erase is complete. You can also delete individual apps or photos without erasing the whole phone, but that does not remove all traces of your personal information.