What happens when you erase an iPhone
Wiping an iPhone removes everything on it — all your photos, messages, apps, settings, and accounts — and returns it to the state it was in when it first came out of the box. The phone itself stays the same; only the data inside gets deleted. This is different from a regular restart, which just turns the phone off and back on without removing anything.
You might wipe your iPhone before selling it, giving it away, trading it in, or if it's running so slowly that starting over is faster than troubleshooting. Once you start the wipe process, you cannot stop it partway through or undo it afterward, so make sure you have backed up anything you want to keep first.
Key Takeaways
- Back up your iPhone to iCloud or your computer before you wipe it, because the erasure cannot be undone.
- You can wipe your iPhone from Settings on the phone itself, or from a computer if the phone is locked or broken.
- The wipe process takes 10 to 30 minutes depending on how much data is on your phone and your internet speed.
- After the wipe completes, your iPhone will restart and show the setup screen, as if it just came from the factory.
- If you are selling or giving away the phone, sign out of your Apple ID before wiping, or the new owner will be locked out.
Back up your data before you start
Before you erase anything, decide what you want to keep. The most common way to back up an iPhone is through iCloud, which stores your photos, messages, contacts, and most app data in Apple's cloud storage. If you have an iCloud account, open Settings, tap your name at the top, then tap iCloud. Scroll down and tap iCloud Backup, then tap Back Up Now. This usually takes 5 to 15 minutes depending on how much data you have and your Wi-Fi speed.
If you prefer to back up to a computer instead, connect your iPhone to a Mac or Windows PC with a USB cable. On a Mac, open Finder and click your phone in the sidebar, then click Back Up Now. On Windows, open iTunes or the Apple Devices app, select your phone, and click Back Up. Either way, wait for the backup to finish completely before you disconnect the phone.
After the backup is done, test it by checking that your photos and messages are actually there. If you backed up to iCloud, sign into iCloud.com on any computer and look for your photos in Photos. If you backed up to a computer, you will see the backup listed in Settings under your name and iCloud, or in iTunes on Windows.
Sign out of your Apple ID if you are giving away the phone
If you plan to sell, trade in, or give away your iPhone, you must sign out of your Apple ID before you wipe it. If you do not, the new owner will see a screen asking for your Apple ID password when they try to set up the phone, and they will not be able to use it without that password. This is a security feature called Activation Lock, and it cannot be bypassed.
To sign out, open Settings, tap your name at the top, scroll to the bottom, and tap Sign Out. You will be asked for your Apple ID password to confirm. Enter it and tap Turn Off. If you use iCloud Keychain or two-factor authentication, you may see additional prompts — just follow them through. Once you see "Signed Out" on the screen, you are ready to wipe the phone.
If you have already wiped the phone and forgot to sign out first, you can still remove Activation Lock by going to iCloud.com, signing in with your Apple ID, clicking Find My, selecting your phone, and choosing Remove from Account. This takes a few minutes to process.
Wipe your iPhone from Settings
This is the most common way to erase an iPhone if the phone is working and you can access it. Open Settings, tap General, scroll to the bottom, and tap Transfer or Reset. Tap Erase All Content and Settings. You will see a warning that this action cannot be undone — read it, then tap Continue.
If you have a passcode on your phone, you will be asked to enter it. Type it in. If you have an Apple ID account on the phone, you will be asked for that password too — enter it. The phone will then show a countdown timer and begin erasing. Do not turn off the phone or disconnect it from power during this time. The process usually takes 10 to 30 minutes.
When the erase is complete, your iPhone will restart and show the Hello screen, the same one you see when you first turn on a new phone. At this point, the wipe is finished. You can set up the phone as new, or restore it from your backup by signing into your Apple ID during setup.
Wipe your iPhone from a computer if the phone is locked or broken
If your iPhone is broken, frozen, or you forgot the passcode, you can still wipe it using a computer. Connect the phone to a Mac or Windows PC with a USB cable. On a Mac, open Finder and click your phone in the sidebar. On Windows, open iTunes or the Apple Devices app. Look for a Restore or Restore iPhone button and click it.
You will be asked whether you want to restore from a backup or set up as new. Choose Set Up as New. The computer will download the latest iPhone software and install it on the phone, which erases everything in the process. This usually takes 15 to 45 minutes depending on your internet speed and how much data was on the phone.
If the phone does not appear in Finder or iTunes, try a different USB cable or a different port on your computer. If it still does not show up, the phone may need to be put into Recovery Mode first. To do this on an iPhone with a home button, hold the top button and home button together until you see the recovery screen. On newer iPhones without a home button, quickly press and release the volume up button, then quickly press and release the volume down button, then hold the side button until the recovery screen appears.
What to do after the wipe is complete
After your iPhone restarts and shows the Hello screen, you have two choices. You can set it up as a brand new phone by tapping through the setup screens and creating new settings from scratch. Or you can restore from your backup by signing into your Apple ID during setup and choosing Restore from iCloud Backup or Restore from Mac/PC.
If you restore from a backup, your photos, messages, apps, and settings will come back onto the phone. This usually takes 30 minutes to an hour depending on how much data you are restoring and your internet speed. The phone may restart several times during this process — this is normal. Do not turn it off or disconnect it from Wi-Fi.
If you are giving the phone to someone else, do not restore from a backup. Instead, set it up as new and let the new owner sign in with their own Apple ID. This gives them a clean phone with no trace of your data on it.
Troubleshooting a wipe that is stuck or not working
If the erase process starts but seems to hang or freeze, wait at least 30 minutes before doing anything. The phone may appear to be stuck when it is actually still working in the background. If 30 minutes pass and nothing has changed, try a force restart. On iPhones with a home button, hold the top button and home button together for 10 seconds. On newer iPhones, quickly press and release the volume up button, then quickly press and release the volume down button, then hold the side button for 10 seconds until you see the Apple logo.
If the phone restarts but the erase did not complete, try wiping it again from Settings. If Settings will not open or the phone is too slow to use, connect it to a computer and use Finder or iTunes to restore it instead. This method is more reliable when the phone is not responding normally.
If you see an error message during the wipe, write down the exact error code or text. Common errors like "Could not complete" or "Connection lost" usually mean your Wi-Fi dropped during the process. Make sure you are connected to a strong Wi-Fi network, then try again. If the error persists, try wiping from a computer instead, which does not depend on your phone's Wi-Fi connection.
Frequently Asked Questions
Can I wipe my iPhone if I forgot my passcode?
Yes. Connect your iPhone to a computer with a USB cable, open Finder or iTunes, and click Restore. The computer will erase the phone and install fresh software, which removes the passcode. You will not be able to access any data on the phone this way, so make sure you have a backup from before you forgot the code.
What if I wipe my iPhone and then realize I needed something from it?
If you backed up to iCloud or a computer before you wiped, you can restore from that backup during setup. Open Settings, tap your name, tap iCloud, and look for your backup in the list. If you did not back up, the data is gone and cannot be recovered.
How long does it take to wipe an iPhone?
The erase itself usually takes 10 to 30 minutes depending on how much data is on your phone. If you then restore from a backup, add another 30 minutes to an hour. If you set it up as new, you are done after the erase and restart.
Do I need to remove my SIM card before wiping?
No. The SIM card is separate from the phone's storage and will not be affected by a wipe. You can leave it in the phone during the entire process. If you are giving the phone to someone else, you should remove your SIM card before you hand it over.
Will wiping my iPhone remove the iOS software?
No. Wiping removes only your personal data, apps, and settings. The iOS software stays on the phone. When you wipe from Settings, the same version of iOS remains. When you wipe from a computer, the computer may install the latest version of iOS, but the software itself is not removed.