What happens when you erase your iPhone
When you erase an iPhone, the operating system wipes the storage drive and reinstalls iOS from scratch. This removes all your photos, messages, apps, contacts, and settings — everything you've stored on the device. The phone returns to the state it was in when it left the factory, except for the iOS version currently installed.
This is different from straightforward deleting individual files or apps. A full erase removes the data in a way that makes recovery much harder, though not impossible with specialized tools. For most people, erasing is the right choice before selling a phone, giving it away, or starting over after a security incident.
Key Takeaways
- A full iPhone erase removes all your data and reinstalls iOS, but you should back up first if you want to keep anything.
- You can erase through Settings on the phone itself, or through a computer using Finder (Mac) or iTunes (Windows).
- After erasing, the phone will ask you to sign in with an Apple ID — use the same one you used before, or a new one if you're giving the phone away.
- Erasing takes 10 to 30 minutes depending on storage size and your phone model, and the phone will restart several times during the process.
Back up your data before you erase
Before you erase, decide what you want to keep. If you're selling or giving away the phone, you probably want to back up your photos, messages, and other files to your Apple ID account or a computer. If you're erasing because of a security concern, you may not want to restore from a backup — a backup could restore malware or compromised data along with your files.
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. This uploads your data to Apple's servers, encrypted with your Apple ID password. The backup includes photos, messages, app data, and settings, but not apps themselves — those read fresh from the App Store when you restore.
To back up to a computer, connect your iPhone to a Mac with a USB cable, open Finder, click your phone in the sidebar, and click Back Up Now. On Windows, use iTunes instead. A computer backup is more complete than iCloud and gives you a copy you control locally, but it takes longer and requires a cable.
Erase through Settings on your iPhone
This is the fastest method if you're at the phone itself. Go to Settings > General > Transfer or Reset. Tap Erase All Content and Settings. The phone will ask you to confirm and may ask for your Apple ID password — this is a security feature to prevent someone else from erasing your phone remotely.
Enter your password if prompted. The phone will show a countdown and begin erasing. Do not turn off the phone or disconnect it from power during this process. The erase usually takes 10 to 30 minutes depending on how much storage the phone has and how old the model is. The phone will restart several times and show a progress bar.
When the erase is complete, you'll see the setup screen as if the phone is brand new. You can set it up as a new phone, or sign in with an Apple ID to restore from a backup.
Erase through a computer if the phone won't respond
If your iPhone is frozen, won't turn on, or won't let you access Settings, you can erase it from a computer. On a Mac with macOS Monterey or newer, connect the phone with a USB cable, open Finder, click your phone in the sidebar, and click Restore. On older Macs or Windows, use iTunes instead — connect the phone and click Restore iPhone in the summary panel.
The computer will read the current iOS version and erase the phone, then reinstall iOS. This takes longer than erasing on the phone itself — usually 30 to 60 minutes — because the computer has to read the full operating system. Do not disconnect the phone or close the window until it finishes.
If the computer doesn't recognize the phone, try a different USB cable or a different port. If that doesn't work, you may need to put the phone into recovery mode first. The steps vary by model, but generally involve holding specific buttons while connecting to the computer — Apple's support pages have the exact button combinations for each iPhone model.
Set up the phone after erasing
After the erase completes, the phone shows the setup screen. You'll choose a language, connect to Wi-Fi, and then decide whether to set up as a new phone or restore from a backup. If you backed up to iCloud, you can sign in with your Apple ID and choose which backup to restore. If you backed up to a computer, you can restore from that backup instead.
If you're giving the phone to someone else, set it up as a new phone and let them sign in with their own Apple ID. Do not restore from your backup — that would give them access to your photos, messages, and accounts. After setup, you can remove the phone from your Apple ID account by going to Settings > [Your Name] > Find My and turning off Find My iPhone, or by signing out of iCloud entirely.
If you're keeping the phone for yourself, restoring from a backup is usually the right choice. Your apps, photos, messages, and settings will come back, but any malware or compromised data in the backup will also come back. If you erased because of a security incident, consider setting up as new and reinstalling only the apps and data you need.
What to do if you forgot your Apple ID password
If you try to erase and the phone asks for your Apple ID password but you don't remember it, you have two options. You can reset the password through Apple's website — go to iforgot.apple.com, enter your Apple ID email, and follow the steps to verify your identity and set a new password. This usually takes a few minutes.
If you can't reset the password that way, you can take the phone to an Apple Store. Bring a government ID and proof of purchase if you have it. Apple can verify your identity and help you regain access to the account, though this may take longer than resetting online. If you don't have proof of purchase, Apple may ask additional questions to confirm the phone is yours.
Frequently Asked Questions
Can someone recover my data after I erase my iPhone?
Standard erasing makes recovery very difficult for most people, but specialized forensic tools can sometimes recover data from the storage drive. If you're concerned about data security — for example, if the phone contained financial information or medical records — consider encrypting the phone before erasing, or physically destroying the storage drive. For most people, a standard erase is sufficient.
Do I need to erase if I'm just selling the phone?
Yes. Always erase before giving a phone to someone else, even if you've deleted individual apps and photos. An erase removes data that deletion alone leaves behind, and it removes your Apple ID so the new owner can set up with their own account. Without erasing, the new owner may not be able to use the phone fully.
What if the erase gets stuck or takes too long?
If the erase is taking longer than an hour, try force-restarting the phone — the button combination varies by model, but usually involves holding the volume and power buttons together. If that doesn't help, try erasing through a computer instead. If the phone still won't respond, take it to an Apple Store or an authorized repair shop.
Will erasing remove my Apple ID from the phone?
Erasing removes all data and settings, but during setup you'll be asked to sign in with an Apple ID. If you sign in with the same Apple ID, the phone will be linked to that account again. If you're giving the phone away, do not sign in — let the new owner set it up with their own Apple ID instead.
Can I erase just one app or folder instead of the whole phone?
Yes. You can delete individual apps by pressing and holding them in the home screen and tapping Remove App, or by going to Settings > General > iPhone Storage and tapping an app name, then Delete App. You can also delete photos, messages, and other files one at a time. A full erase is only necessary if you want to remove everything and start completely fresh.