What happens when you erase an iPhone
Erasing an iPhone removes all your photos, messages, apps, settings, and personal data from the device itself. The phone returns to the state it was in when it left the factory — no accounts logged in, no saved passwords, no photos in the library. After erasure, you can set it up as new or restore from a backup you saved beforehand.
The erasure process takes 10 to 30 minutes depending on how much data is on the phone and which method you use. During that time, the phone will restart multiple times and show a progress bar. You cannot interrupt the process once it starts.
Important: erasing your iPhone does not remove it from your Apple ID account automatically. If you plan to sell or give away the phone, you must sign out of your Apple ID and remove the device from your account before erasing, or the new owner will not be able to use it.
Key Takeaways
- You can erase your iPhone through Settings > General > Transfer or Reset > Erase All Content and Settings, which is the safest method for most people.
- Before erasing, back up your data through iCloud or a computer if you want to keep photos, messages, or other information.
- Sign out of your Apple ID account and remove the device from your account before erasing if you are selling or giving the phone away.
- If you forget your passcode, you can erase the phone through iCloud.com or by connecting it to a computer with Finder or iTunes.
- After erasing, the phone will ask you to set it up again — you can restore from your backup or start fresh with a new setup.
Erasing through Settings on the phone itself
This is the most straightforward method if you still have access to your iPhone and remember your passcode. Open the Settings app, then go to General. Scroll down and tap Transfer or Reset. Select Erase All Content and Settings.
The phone will ask you to enter your passcode to confirm. If you have an Apple ID on the device, it will also ask for your Apple ID password — this is a security feature to prevent someone else from erasing your phone without permission. Enter your password and tap Erase.
The phone will show a countdown timer and begin the erasure process. The screen will go black several times as the phone restarts. Do not turn off the phone or unplug it during this time. When the process finishes, you will see the setup screen, as if the phone is brand new.
Backing up before you erase
If you want to keep your photos, messages, contacts, or app data, back up your iPhone before erasing it. You have two options: iCloud or a computer.
iCloud backup stores your data on Apple's servers. Go to Settings > [Your Name] > iCloud > iCloud Backup. Make sure the toggle is on. Then tap Back Up Now. The backup will run in the background — it may take several minutes to several hours depending on how much data you have and your internet speed. You can check the progress by going back to Settings > [Your Name] > iCloud > iCloud Backup and looking at the timestamp of the last backup.
Computer backup stores your data on your Mac or Windows PC. Connect your iPhone to the computer with a USB cable. On a Mac, open Finder and click your phone in the sidebar, then click General and select Back Up Now. On a Windows PC, open iTunes or the Apple Devices app, click your phone, and select Back Up Now. The backup will take several minutes to complete.
Removing your Apple ID before erasing
If you are selling or giving away your iPhone, sign out of your Apple ID and remove the device from your account before erasing. This prevents the new owner from seeing your data or being locked out by your account.
Go to Settings > [Your Name] at the top of the screen. Scroll down and tap Sign Out. You will be asked to enter your Apple ID password. After you sign out, go back to Settings > [Your Name] and tap Find My. Turn off Find My iPhone.
You can also remove the device from your Apple ID account through iCloud.com. Sign in with your Apple ID, click Find My, then click Find My iPhone. Select your phone from the list and click Remove. This step is optional but recommended — it ensures the device is fully disconnected from your account before the new owner sets it up.
Erasing if you forgot your passcode
If you cannot remember your passcode, you can still erase the phone through iCloud.com or by connecting it to a computer. You will need to know your Apple ID password.
Through iCloud: Go to iCloud.com and sign in with your Apple ID. Click Find My, then Find My iPhone. Select your phone from the list. Click Erase iPhone. Confirm by entering your Apple ID password. The phone will erase remotely — you do not need to have it in your hands, and it will erase the next time it connects to the internet.
Through a computer: 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. Click General and select Restore. On a Windows PC, open iTunes or the Apple Devices app, click your phone, and select Restore. The computer will download the latest iPhone software and erase the phone, then ask you to set it up again. This method requires the phone to be connected the entire time.
What to do after the phone is erased
Once the erasure is complete, the iPhone will show the setup screen. You can set it up as a new phone or restore from your backup. If you backed up to iCloud, sign in with your Apple ID during setup and choose Restore from iCloud Backup. Select the backup you created before erasing. The phone will download your photos, messages, apps, and settings from that backup.
If you backed up to a computer, connect the phone to that computer after setup is complete. On a Mac, open Finder and click your phone, then click Restore Backup. On a Windows PC, open iTunes or the Apple Devices app, click your phone, and select Restore Backup. Choose the backup you created and the phone will restore your data.
If you want to start completely fresh without restoring a backup, just continue through the setup process without selecting a backup option. You will need to sign in to your Apple ID, set up Face ID or Touch ID, and choose your preferences, but your phone will have no old data on it.
Frequently Asked Questions
Will erasing my iPhone remove it from my Apple ID account?
No. Erasing the phone removes the data from the device, but the phone stays connected to your Apple ID account. You must sign out of your Apple ID and remove the device from your account separately if you plan to sell or give away the phone. This prevents the new owner from being locked out by your account.
Can I erase my iPhone if it is locked with a passcode?
Yes. If you remember your passcode, you can erase through Settings. If you forgot it, you can erase through iCloud.com or by connecting the phone to a computer — both methods require your Apple ID password instead.
How long does it take to erase an iPhone?
The process usually takes 10 to 30 minutes. The time depends on how much data is on the phone and which method you use. During erasure, the phone will restart multiple times. Do not turn it off or unplug it until the process finishes.
What happens to my photos and messages after I erase?
They are permanently removed from the phone. If you want to keep them, back up your iPhone to iCloud or a computer before erasing. After you erase and set up the phone again, you can restore that backup to get your photos and messages back.
Can someone else erase my iPhone without my permission?
Not easily. If they have your passcode, they can erase it through Settings. If they do not have your passcode, they would need your Apple ID password to erase it through iCloud or a computer. This is why it is important to use a strong passcode and keep your Apple ID password private.