What happens when you erase an iPhone

Erasing an iPhone removes all your data — photos, messages, contacts, apps, settings — and returns the phone to factory condition. The process wipes the device's storage and reinstalls the original operating system. Once you confirm the erase, the data cannot be recovered from the phone itself, though anything you backed up to iCloud or your computer beforehand will still exist in those places.

You might erase an iPhone before selling it, giving it away, trading it in, or straightforward starting fresh. The method you use depends on whether the phone still turns on and whether you remember your Apple ID password — both matter because Apple's security system requires verification to prevent theft.

Key Takeaways

  • A complete erase removes all data and reinstalls the operating system, but backed-up files in iCloud or on your computer remain safe.
  • If the iPhone turns on, use Settings > General > Transfer or Reset > Erase All Content and Settings, which is faster and more reliable than older methods.
  • You will need your Apple ID password during the erase process, and the phone will ask for it again when setup completes.
  • If the iPhone does not turn on or you cannot access Settings, connect it to a computer running macOS or Windows and use Finder or iTunes to erase it.
  • After erasing, the phone will restart and show the setup screen; you can set it up as new or restore from a backup.

Erasing an iPhone that turns on

If your iPhone powers on and you can access the home screen, the fastest way to erase it is through Settings. Open Settings, tap General, then scroll down and tap Transfer or Reset. Tap Erase All Content and Settings. The phone will warn you that this action cannot be undone and ask you to confirm. Tap Erase again.

The iPhone will ask for your Apple ID password. This is a security step — Apple requires it to prevent someone from erasing a stolen phone and selling it. Type your password and tap Next. The phone will begin erasing, which usually takes 5 to 15 minutes depending on how much data is stored. Do not turn off the phone or disconnect it during this time.

When the erase finishes, the iPhone will restart and show the setup screen, the same one you see when a new phone comes out of the box. At this point you can set up the phone as new, or if you have a backup saved to iCloud, you can sign in with your Apple ID and restore from that backup. If you are giving the phone to someone else, leave it at the setup screen so they can set it up with their own account.

Erasing an iPhone using a computer

If the iPhone does not turn on, is frozen, or you cannot access Settings, you can erase it by connecting it to a Mac or Windows computer. On a Mac running macOS Monterey or newer, open Finder, plug in the iPhone, and click the device name in the sidebar. Click Restore in the right panel. On a Mac running macOS Big Sur or older, or on any Windows computer, use iTunes instead: plug in the iPhone, click the device icon, and select Restore.

Your computer will read the correct operating system version for that iPhone model, which can take several minutes depending on your internet speed. When the read finishes, the computer will erase the phone and install the operating system. The iPhone will restart and show the setup screen. You will still need your Apple ID password if you set up the phone afterward — Apple requires this even after a computer erase.

If you see an error message during the computer erase, try these steps in order: disconnect the iPhone and restart both the computer and phone, reconnect the iPhone and try again, try a different USB cable, or try a different computer. If the phone is very old or damaged, a computer erase may not work, and you may need to contact Apple Support.

What to do if you forgot your Apple ID password

If you cannot remember your Apple ID password, you cannot complete an erase on the phone itself — the system will not let you proceed without it. You have two options: reset your password before erasing, or erase using a computer.

To reset your password, go to iforgot.apple.com on any device, enter your Apple ID email address, and follow the steps to verify your identity. Apple will send a verification code to your email or phone number. Once you reset your password, return to your iPhone and try the erase again through Settings.

If you cannot reset your password for some reason, connect the iPhone to a computer and use Finder or iTunes to erase it. The computer erase does not require your Apple ID password during the erase itself, though you will need the password if you want to set up the phone afterward.

Erasing an iPhone you cannot access

If you lost your iPhone or it was stolen, you can erase it remotely using Find My iPhone. Go to iCloud.com on any computer or use the Find My app on another Apple device. Sign in with your Apple ID, select Find My iPhone, click the device you want to erase, and select Erase iPhone. The phone will erase the next time it connects to the internet, even if it is powered off.

Remote erase is useful if you cannot physically reach the phone, but it requires that Find My was turned on before the phone was lost. If Find My was not enabled, you cannot erase the phone remotely. In that case, contact your phone carrier or Apple Support to report the device.

After the erase is complete

Once the erase finishes and the iPhone restarts, it will show the setup screen. If you are selling or giving away the phone, you can leave it here — the new owner will set it up with their own Apple ID. If you are keeping the phone, you can set it up as new or restore from a backup.

To restore from a backup, sign in with your Apple ID during setup and choose which backup to restore. The phone will read your apps, photos, messages, and other data from iCloud. This process can take 30 minutes to several hours depending on how much data you have and your internet speed. Keep the phone plugged in and connected to Wi-Fi during the restore.

If you are selling the phone, make sure it is signed out of your Apple ID before you hand it over. After the erase, the setup screen will ask for an Apple ID, but the new owner should use their own account, not yours. If you accidentally leave your Apple ID on the phone, the new owner will not be able to use it until you remove the account from iCloud.com.

Frequently Asked Questions

Can I recover data after I erase my iPhone?

Data erased from the iPhone itself cannot be recovered. However, if you backed up your iPhone to iCloud or your computer before erasing, you can restore that backup to the same phone or a different one. If you did not back up, the data is gone.

Do I need to erase my iPhone before selling it?

Yes. Erasing removes your personal data so the buyer cannot access your photos, messages, or accounts. It also removes your Apple ID from the phone, which is required for the buyer to set it up with their own account.

What if my iPhone is stuck on the setup screen after erasing?

This usually means the phone is waiting for an internet connection or Apple ID verification. Make sure the phone is connected to Wi-Fi, wait a few minutes, and try again. If it stays stuck, try connecting to a computer and erasing it again using Finder or iTunes.

Will erasing my iPhone remove it from my Apple ID account?

Erasing the phone removes the data from the device, but the phone remains linked to your Apple ID until you remove it from iCloud.com. If you are giving the phone to someone else, sign into iCloud.com, go to Find My, select the device, and click Remove to unlink it from your account.

How long does it take to erase an iPhone?

The erase itself usually takes 5 to 15 minutes. If you are erasing using a computer, add time for downloading the operating system, which can be 10 to 30 minutes depending on file size and internet speed. Restoring from a backup afterward can take 30 minutes to several hours.