What happens when you erase an iPhone
When you erase an iPhone, you remove all your personal data — photos, messages, contacts, installed apps, and settings — and restore the phone to its factory state. The phone itself stays functional; you're just clearing the storage and returning it to how it looked when it first came out of the box.
This is different from simply deleting individual apps or photos. A complete wipe removes everything at once and resets the system settings too. After the wipe, you'll see the setup screen you saw when the phone was brand new, and you can either set it up as a new device or restore from a backup.
Most people wipe their iPhone before selling it, giving it away, trading it in, or handing it to a family member. It's also useful if your phone is running slowly or you want to start over without keeping old data.
Key Takeaways
- Back up your iPhone through iCloud or your computer before you erase it, unless you're certain you don't need any of the data.
- Go to Settings > General > Transfer or Reset > Erase All Content and Settings to wipe the phone completely.
- The wipe process takes 5 to 15 minutes depending on how much data is on your phone and your internet speed.
- After erasing, your iPhone will ask you to sign in with your Apple ID before you can use it again — this is a security feature.
- If you're selling or giving away the phone, remove it from your Apple ID account before handing it over so the new owner can set it up.
Back up your data before you erase
Unless you're absolutely certain you won't need anything on your phone, back it up first. A backup saves all your photos, messages, contacts, and app data so you can restore them later if you change your mind or move to a new phone.
The easiest way is through iCloud, Apple's cloud storage service. Go to Settings > [Your Name] > iCloud, make sure iCloud Backup is turned on, then tap Back Up Now. This creates a copy of your phone in your iCloud account. The backup happens over Wi-Fi and can take anywhere from a few minutes to an hour depending on how much data you have.
If you prefer to keep the backup on your computer instead, connect your iPhone to a Mac or Windows PC, open Finder (Mac) or iTunes (Windows), select your phone, and click Back Up Now. This method gives you a local copy you control directly.
Remove your iPhone from your Apple ID account
Before you erase the phone, sign out of your Apple ID account. This step is especially important if you're selling, trading in, or giving the phone to someone else. If you don't sign out first, the new owner will see a lock screen asking for your Apple ID password, and they won't be able to use the phone 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'll be asked for your Apple ID password to confirm. Enter it, then choose whether to keep or delete a copy of your iCloud data on the phone (usually you'll choose to keep it so the backup stays safe). After you sign out, your phone is no longer linked to your account.
If you can't remember your Apple ID password, you can reset it at iforgot.apple.com before you sign out. This is much easier than trying to fix it after the phone is already erased.
Erase the iPhone using Settings
Once you've backed up your data and signed out of your Apple ID, you're ready to erase. Open Settings and tap General. Scroll down to the bottom and tap Transfer or Reset (the exact name varies by iOS version). Then tap Erase All Content and Settings.
Your phone will ask you to confirm and may ask for your Apple ID password one more time as a security check. Enter it if prompted. The phone will then begin erasing. You'll see a progress bar, and the phone may restart once or twice during the process. Don't unplug it or turn it off while this is happening.
The entire process usually takes 5 to 15 minutes. When it's done, your iPhone will restart and show the setup screen — the same one you saw when the phone was brand new.
What to do after the wipe is complete
After the erase finishes, your iPhone will ask you to set it up. You have two choices: set it up as a new device, or restore from the backup you created earlier.
If you're keeping the phone for yourself and want your data back, choose Restore from iCloud Backup or Restore from Mac/PC Backup (depending on where you backed up). Sign in with your Apple ID, choose which backup to restore, and the phone will download all your photos, messages, contacts, and apps back onto the device. This can take 30 minutes to several hours depending on how much data you're restoring and your internet speed.
If you're giving the phone to someone else, choose Set Up as New iPhone and let them complete the setup with their own Apple ID. They'll be able to restore their own backup or start completely fresh.
If you can't erase through Settings
Occasionally the Settings method doesn't work — the phone might be frozen, you might have forgotten your passcode, or the erase option might not appear. In these cases, you can erase through a computer instead.
Connect your iPhone to a Mac or Windows PC with a USB cable. On a Mac, open Finder and select your phone from the sidebar. On Windows, open iTunes. Look for a Restore button and click it. Your computer will download the latest iOS software and erase the phone, then reinstall a fresh copy of iOS. This method works even if your phone won't turn on or respond to touch.
If your phone is completely unresponsive and won't connect to a computer, you can force it into recovery mode. The steps vary by iPhone model, but generally involve pressing and holding specific buttons (like Volume Up and the side button) until you see the recovery screen. Once there, you can choose Restore to erase and reinstall iOS.
Selling or trading in your iPhone
If you're selling your phone to someone else or trading it in to a carrier or retailer, erasing it is only the first step. After you erase, also remove the phone from your Apple ID account through iCloud.com so the new owner doesn't see your account linked to it.
Sign in to iCloud.com with your Apple ID, go to Find My, select Devices, find your iPhone in the list, and click Remove. This tells Apple's servers that the phone is no longer yours. The new owner can then set it up with their own Apple ID without any blocks.
Keep your receipt or proof of sale in case there's ever a dispute about who owns the phone. Some carriers and retailers ask for proof before they'll process a trade-in credit.
Frequently Asked Questions
Can I recover data after I erase my iPhone?
If you erased without a backup, the data is gone. iOS doesn't have a trash bin or undo feature. However, if you created a backup before erasing, you can restore from it by going through the setup process again and choosing Restore from Backup. You can restore from iCloud or from a computer backup you created earlier.
Will erasing my iPhone remove the SIM card data?
No. Erasing your iPhone only clears the phone's storage and settings. Your SIM card (the tiny chip from your carrier) is separate and keeps its own data. If you want to remove your phone number and carrier information, you'll need to contact your carrier to deactivate the SIM card separately.
What if I forget my passcode before erasing?
You can still erase the phone through a computer using recovery mode. Connect it to a Mac or Windows PC, open Finder or iTunes, and click Restore. Your computer will erase the phone and reinstall iOS without needing your passcode. You'll set a new passcode during setup.
How long does it take to erase an iPhone?
The erase itself usually takes 5 to 15 minutes. If you're restoring from a backup afterward, add another 30 minutes to several hours depending on how much data you're restoring and your internet speed. A fresh setup with no restoration is much faster — usually 10 to 20 minutes total.
Do I need Wi-Fi to erase my iPhone?
You need Wi-Fi or a cellular connection to sign out of your Apple ID and to erase through Settings. If you're erasing through a computer, you don't need the phone to be connected to Wi-Fi — the computer handles the process. Either way, having a stable connection makes the process faster and more reliable.