What happens when you erase an iPhone
When you erase an iPhone, you remove all the data stored on the device — photos, messages, apps, contacts, browsing history, and settings. The phone itself stays functional; you are not destroying the hardware. After the wipe, the iPhone returns to the state it was in when it first shipped from Apple, and you can set it up again as a new device or restore from a backup you made beforehand.
The erase process is permanent. Once you confirm the action, the data cannot be recovered through normal means. This is why backing up before you wipe is the most important step — if you erase without a backup and then change your mind, you have lost that data.
There are three main reasons people wipe an iPhone: selling or giving away the device, fixing a software problem that a restart did not solve, or removing all personal data before handing the phone to someone else. The steps are the same regardless of your reason.
Key Takeaways
- Back up your iPhone to iCloud or your computer before you erase, because the wipe is permanent and data cannot be recovered afterward.
- You can erase through Settings on the phone itself, or through a computer if the phone is locked or not responding.
- If you are selling or giving away the phone, sign out of your Apple ID before erasing so the new owner can set it up without your account blocking them.
- After erasing, the iPhone will ask you to set it up again; you can choose to restore from your backup or start completely fresh.
- If you forget your passcode, you will need your Apple ID password or a computer to erase the phone remotely.
Back up your data before you erase
You have two backup options: iCloud (Apple's cloud storage) or your computer. iCloud is simpler if you have space available; a computer backup gives you more control and works even if you do not have internet access.
To back up to iCloud: Open Settings, tap your name at the top, select iCloud, then tap iCloud Backup. Make sure the toggle is on (it should be blue). Tap Back Up Now. The backup will run in the background as long as your iPhone is plugged in, connected to Wi-Fi, and the screen is locked. Check the date under "Last Backup" to confirm it completed.
To back up to a computer: Connect your iPhone to a Mac or Windows PC with a USB cable. On a Mac, open Finder and click your device name in the sidebar. On Windows, open iTunes or the Windows version of Finder. Click Back Up Now. The backup will save to your computer's hard drive. This backup is encrypted if you check the "Encrypt local backup" box, which protects it with a password.
iCloud backups include most data but not everything — they do not back up photos in your Camera Roll if you use iCloud Photos, or data from apps that store information only on the device. A computer backup is more complete. If you use both, you have two copies.
Erase your iPhone through Settings
This is the most straightforward method if your phone is working normally and you remember your passcode.
Open Settings and scroll down to General. Tap Transfer or Reset (the name varies by iOS version). Scroll to the bottom and tap Erase All Content and Settings. The phone will ask you to confirm your passcode, then your Apple ID password. Enter both. The phone will show a countdown and then begin erasing. This takes 5 to 15 minutes depending on how much data is on the device.
Do not turn off the phone or disconnect it during the erase. Let it finish completely. When it is done, you will see the setup screen — the same screen you saw when the iPhone was brand new.
Sign out of your Apple ID before giving away the phone
If you are selling or giving the iPhone to someone else, you must sign out of your Apple ID before erasing. If you do not, the new owner will see the set up Lock screen when they set up the phone, and they will not be able to use it without your Apple ID password.
Open Settings, tap your name at the top, scroll down, and tap Sign Out. Enter your Apple ID password. You will see options to keep or remove data from iCloud — choose what makes sense for you. Then tap Sign Out again to confirm.
After you sign out, proceed with the erase through Settings as described above. Once the erase is complete and the phone shows the setup screen, the device is ready for the new owner. They can set it up with their own Apple ID.
Erase a locked or unresponsive iPhone
If your phone is frozen, the screen is not responding, or you forgot your passcode, you cannot erase through Settings. You have two options: use Find My iPhone from another device, or use a computer.
Using Find My iPhone: Go to iCloud.com on another device or use the Find My app on another Apple device. Sign in with your Apple ID. Select Find My iPhone. Choose your device from the list. Tap the device name, then tap Erase This Device. Confirm your choice. The phone will erase remotely as soon as it connects to the internet. This works even if the phone is off.
Using a computer: Connect the iPhone to a Mac or Windows PC with a USB cable. On a Mac, open Finder and click your device in the sidebar. On Windows, open iTunes. Click Restore. The computer will read the latest iOS and erase the phone, then install a fresh copy of the operating system. This takes 10 to 30 minutes.
Both methods require your Apple ID password. If you do not remember it, you will need to reset it through Apple's account recovery process before you can erase the phone.
What to do after the erase is complete
When the erase finishes, the iPhone will show the setup screen. You have two paths: restore from your backup, or set up as a new device.
Restore from backup: During setup, you will see an option to restore from iCloud or from a computer backup. Choose the backup you made before erasing. The phone will read your data, apps, photos, and settings from that backup. This takes 30 minutes to several hours depending on how much data you have and your internet speed. Your phone will look and feel the same as it did before the erase.
Set up as new: If you choose not to restore, you will set up the phone from scratch. You will sign in with your Apple ID, choose your settings, and read apps fresh from the App Store. This is useful if you want a clean start or if you are giving the phone to someone else.
Frequently Asked Questions
Can I undo an erase after I have already done it?
No. Once the erase completes, the data is gone. The only way to recover it is to restore from a backup you made before erasing. If you did not back up, the data cannot be recovered. This is why backing up before you erase is so important.
What if I forgot my Apple ID password and need to erase my phone?
You will need to reset your Apple ID password through Apple's account recovery page before you can erase. Go to iforgot.apple.com, enter your Apple ID email, and follow the steps to reset your password. Once you have reset it, you can erase the phone through Settings or Find My iPhone.
Does erasing the iPhone remove the SIM card data?
No. Erasing the iPhone only removes data stored on the phone itself. Your SIM card (or eSIM) contains your phone number and carrier information, and that stays separate. If you are giving the phone to someone else, remove the SIM card or contact your carrier to deactivate it.
How long does it take to erase an iPhone?
The erase itself usually takes 5 to 15 minutes. If you restore from a backup afterward, add another 30 minutes to several hours depending on the size of your backup and your internet speed. If you set up as new, the initial setup takes 10 to 20 minutes, then downloading apps takes additional time.
Can someone else erase my iPhone without my permission?
Not without your Apple ID password or passcode. If someone has both, they can erase it. If they only have the passcode, they can erase through Settings. If they have neither, they cannot erase it remotely. This is why keeping your passcode and Apple ID password private is important for device security.