What happens when you erase an iPhone

Erasing an iPhone removes all your data — photos, messages, contacts, apps, settings — and reinstalls the operating system from scratch. The phone returns to the state it was in when it left the factory. This is different from just deleting individual apps or photos; it wipes everything at once.

You should erase your iPhone before selling it, giving it away, or trading it in. You may also erase it if the phone is running slowly, freezing constantly, or behaving erratically. Erasing is also the step you take if you have forgotten your passcode and cannot unlock the phone any other way.

Before you erase, understand that this action cannot be undone. Once you start the process, you cannot stop it partway through. Make sure you have backed up anything you want to keep.

Key Takeaways

  • Back up your iPhone to iCloud or a computer before erasing, because the process deletes everything and cannot be reversed.
  • You can erase from Settings on the phone itself if you know your passcode and Apple ID password.
  • If you have forgotten your passcode, you will need a computer and either iCloud.com or the Finder app to erase remotely.
  • After erasing, the phone will restart and ask you to set it up again, as if it were brand new.
  • Erasing takes 10 to 30 minutes depending on how much data was on the phone and how full the storage was.

Back up your data first

Before you erase, 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 app data in Apple's cloud storage. If you have an iCloud account, go to Settings, tap your name at the top, then tap iCloud. Turn on the toggle next to iCloud Backup. The phone will back up automatically when it is plugged in, locked, and connected to Wi-Fi.

If you do not have iCloud or prefer a local backup, connect your iPhone to a Mac or Windows computer. On a Mac, open Finder, select your iPhone from the sidebar, and click Back Up Now. On Windows, open iTunes or the Apple Devices app, select your iPhone, and click Back Up. This creates a backup file on your computer that contains everything on the phone.

The backup process can take 15 minutes to an hour depending on how much data you have. Do not unplug the phone or close the app until it finishes. You will see a confirmation message when the backup is complete.

Erase your iPhone from Settings if you know your passcode

If you can unlock your phone, the fastest way to erase is through Settings. Open Settings and tap your name at the top. Scroll down and tap General. Scroll to the bottom and tap Transfer or Reset. Tap Erase All Content and Settings.

The phone will ask you to enter your passcode, then your Apple ID password. This is a security step — Apple requires your password to prevent someone else from erasing your phone without permission. Enter both correctly and tap Erase again to confirm.

The phone will show a progress bar and may restart several times. Do not turn off the phone or unplug it. The entire process usually takes 10 to 30 minutes. When it finishes, you will see the setup screen, as if the phone is brand new.

Erase a forgotten passcode using iCloud.com

If you have forgotten your passcode but remember your Apple ID email and password, you can erase the phone remotely using iCloud.com. Go to iCloud.com on any computer or phone and sign in with your Apple ID. Click Find My iPhone (or Find My on newer versions).

A map will appear showing all devices linked to your Apple ID. Click your iPhone from the list. A panel will open on the right side with options. Click Erase iPhone. Confirm that you want to erase by clicking Erase again. The phone does not need to be in your hands — iCloud will send the erase command to the phone the next time it connects to the internet.

If the phone is offline, the erase will happen as soon as it reconnects. You will see a confirmation message on iCloud.com once the erase is complete. The phone will restart and show the setup screen.

Erase using a Mac or Windows computer if you cannot access iCloud

If you do not remember your Apple ID password, you can still erase the phone using a computer. Connect the iPhone to a Mac with a USB cable. Open Finder and click your iPhone in the sidebar. Click Restore, which will erase the phone and reinstall the operating system.

On Windows, connect the iPhone and open iTunes or the Apple Devices app. Select your iPhone and click Restore. The computer will download the latest version of iOS and install it on the phone. This process takes 20 to 45 minutes and requires a stable internet connection.

During the restore, the phone will restart multiple times and show a progress bar. Do not unplug the phone until the process finishes completely. When it is done, the phone will show the setup screen and you can set it up as a new device.

Set up your iPhone after erasing

After the erase finishes, the phone will display the setup screen in your language. You will be asked to connect to Wi-Fi, sign in with your Apple ID, and choose whether to restore from your backup or set up as new.

If you backed up to iCloud before erasing, you can choose Restore from iCloud Backup and sign in with your Apple ID. The phone will download your photos, messages, contacts, and apps from the backup. This usually takes 30 minutes to an hour depending on how much data you have and your internet speed.

If you backed up to a computer, connect the iPhone to that computer after setup begins. The computer will offer to restore from the backup file it created. If you do not want to restore anything, choose Set Up as New iPhone and the phone will start completely empty.

What to do if the erase fails or gets stuck

If the phone shows an error message during erasing, try again. Disconnect the phone, wait 30 seconds, and start the erase process over. Make sure the phone is plugged in to power and connected to Wi-Fi if you are erasing from Settings.

If the phone is stuck on the progress bar for more than an hour, force restart it. The method depends on your iPhone model. On iPhone 8 and newer, quickly press and release the Volume Up button, then quickly press and release the Volume Down button, then press and hold the Side button until the power-off slider appears. On iPhone 7 and earlier, press and hold the Top (or Side) button and the Volume Down button together until the power-off slider appears. Slide to power off, wait 30 seconds, then turn the phone back on.

If you are erasing from a computer and the restore fails, try a different USB cable or a different USB port on the computer. Update iTunes or the Apple Devices app to the latest version. If the problem continues, the phone may have a hardware issue and you may need to visit an Apple Store.

Frequently Asked Questions

Can I erase my iPhone if I do not know my Apple ID password?

Yes, if you have access to a computer. Connect the iPhone to a Mac or Windows computer and use Finder (Mac) or iTunes (Windows) to restore the phone. This erases it without needing your Apple ID password. If you do not have a computer, you will need to reset your Apple ID password at iforgot.apple.com first.

Will erasing my iPhone remove it from my family sharing group?

No. Erasing the phone removes the data from the device, but the phone remains linked to your Apple ID and family sharing. If you are giving the phone to someone else, you will need to remove it from your account separately after erasing. Go to Settings, tap your name, tap Family Sharing, and remove the device from the list.

How long does it take to erase an iPhone?

The erase process itself usually takes 10 to 30 minutes. If you are restoring from a backup afterward, add another 30 minutes to an hour depending on how much data you have. The total time from start to a fully set-up phone is usually one to two hours.

What if I change my mind after starting the erase?

You cannot stop the erase once it has started. The phone will continue erasing all data. If you have a recent backup, you can restore from it after the erase finishes and the phone restarts.

Do I need to remove my SIM card before erasing?

No. Erasing the iPhone does not affect the SIM card. The SIM card stores your phone number and carrier information separately from the phone's storage. You can leave it in the phone during the erase.