What happens when you erase an iPhone

Completely clearing an iPhone removes all your personal data — photos, messages, contacts, installed apps, saved passwords, payment information — and returns the phone to factory settings. The phone itself stays intact and usable; only the data leaves. This is different from a regular backup or signing out of accounts, because those steps leave data behind on the device.

When you erase an iPhone, the operating system also resets. This means any settings you changed — notification preferences, display brightness, accessibility options — go back to Apple's defaults. The phone will ask you to set it up again as if it were brand new, starting with language and Wi-Fi selection.

There are two main reasons to do this: you are selling or giving away the phone, or you are troubleshooting a serious problem like malware or a forgotten passcode. The method you use depends on whether you can still access the phone normally.

Key Takeaways

  • A complete erase removes all personal data and settings, leaving only the iOS operating system.
  • If you can unlock the phone, use Settings > General > Transfer or Reset > Erase All Content and Settings, which is the safest method.
  • If you cannot unlock the phone, use a computer with Finder (Mac) or iTunes (Windows) and put the phone in recovery mode to erase it remotely.
  • Before erasing, turn off Find My iPhone in Settings > [Your Name] > Find My, or the phone will lock to your Apple ID after the erase.
  • After erasing, the phone will ask for setup information; you can skip most steps if you plan to give it away.

Erase an iPhone you can unlock

If you know your passcode or can use Face ID or Touch ID to unlock the phone, this is the straightforward path. Open the Settings app and tap your name at the top of the screen. Scroll down and tap Find My. Tap Find My iPhone and toggle it off. You will need to enter your Apple ID password to confirm. This step is essential — if you skip it, the phone will lock to your Apple ID after the erase, and you or the new owner will not be able to use it without that password.

Once Find My iPhone is off, go back to the main Settings screen. Tap General, then scroll to the bottom 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 Continue, then enter your passcode or use Face ID to verify. The erase will begin when ready.

The process takes 5 to 15 minutes depending on how much data is on the phone. Do not turn off the phone or disconnect it from power during this time. When it finishes, the phone will restart and show the setup screen, as if it came from the factory. You can now give it away, sell it, or set it up as new.

Erase an iPhone you cannot unlock

If you forgot your passcode, disabled Face ID or Touch ID, or inherited a phone locked to someone else's account, you will need a computer. On a Mac running Monterey or newer, open Finder and plug in the iPhone with a USB cable. On a Windows computer, open iTunes (read it from Apple's website if you do not have it). The computer will recognize the phone.

In Finder or iTunes, click the iPhone icon when it appears. Look for a button labeled Restore or Restore iPhone. Click it. The software will ask whether you want to restore from a backup or set up as new — choose Set Up as New. The computer will read the current iOS version and erase the phone, then install a fresh copy of the operating system. This takes 10 to 30 minutes.

If the phone is locked to an Apple ID (set up Lock), the computer will tell you this during the process. The phone will erase, but it will ask for that Apple ID password when it starts up. If it is your own Apple ID, you can enter the password. If it is someone else's, you will need to contact that person and ask them to remove the phone from their account through iCloud.com, or you will need proof of purchase to contact Apple Support.

Use recovery mode if the phone will not respond

If the iPhone is frozen, will not turn on, or will not connect to a computer normally, you can force it into recovery mode. The steps differ by iPhone model. On an iPhone with a home button (iPhone 8 or older), plug it into a computer, then press and hold the top (or side) button until you see the power-off slider. Drag the slider to turn off the phone. Keep holding the button — after the phone goes dark, keep holding for about 10 seconds until you see the recovery mode screen (a cable pointing to a computer icon).

On an iPhone without a home button (iPhone X and newer), plug it in, then quickly press and release the volume-up button. Quickly press and release the volume-down button. Then press and hold the side button until the recovery mode screen appears. This usually takes 10 to 15 seconds.

Once the phone is in recovery mode, Finder or iTunes will offer to restore it. Click Restore and follow the prompts. The computer will erase and reinstall iOS. This method works even if the phone is completely unresponsive, but it also means you cannot turn off Find My iPhone first, so you may encounter set up Lock when the phone restarts.

What to do if the phone asks for an Apple ID after erasing

After the erase completes and the phone restarts, it may ask for the Apple ID password that was on the phone before. This is set up Lock, a security feature that prevents someone from erasing a stolen phone and using it. If this is your phone and your Apple ID, enter your password and you are done.

If you erased the phone to give it away or sell it, and the previous owner's Apple ID appears, you have a problem. The phone cannot proceed past this screen without that password. Contact the previous owner and ask them to go to iCloud.com, sign in with their Apple ID, open Find My, select the phone, and choose Remove. They can do this from any computer or phone. Once they remove it, the phone will unlock and you can set it up.

If you cannot reach the previous owner, you can contact Apple Support with proof of purchase. Apple can sometimes remove set up Lock, but the process takes time and requires documentation that you own the phone.

Back up your data before erasing

If you are erasing because you want to keep your data but start fresh, back up first. The easiest method is iCloud. Go to Settings > [Your Name] > iCloud and make sure iCloud Backup is on. Tap Back Up Now. The backup will upload to Apple's servers and take 10 minutes to an hour depending on how much data you have and your internet speed. Once it finishes, you can erase the phone. When you set it up again, choose Restore from iCloud Backup during setup and sign in with your Apple ID. The phone will read all your photos, messages, apps, and settings.

Alternatively, you can back up to a computer. On a Mac, plug in the iPhone and open Finder. Click the iPhone, then click Back Up Now. On Windows, open iTunes, click the iPhone icon, and click Back Up. The backup saves to your computer's hard drive. After you erase and set up the phone again, plug it back into the computer and choose Restore from Backup.

Erase specific apps or data instead of the whole phone

If you only want to remove certain apps or data, you do not need to erase the entire phone. To delete an app, press and hold its icon on the home screen and tap Remove App, then Delete App. To clear browsing history and website data, go to Settings > Safari > Clear History and Website Data. To remove photos, open the Photos app, tap Select, choose the photos you want, and tap Delete.

To clear all messages, go to Settings > General > iPhone Storage, scroll down to Messages, and tap Review Large Attachments or Delete. You can also reset individual settings without erasing everything — for example, go to Settings > General > Transfer or Reset > Reset and choose Reset Network Settings to clear saved Wi-Fi passwords, or Reset All Settings to return settings to defaults while keeping your data.

Frequently Asked Questions

Will erasing the iPhone remove the SIM card data?

No. The SIM card is a separate chip that stores your phone number and carrier information. Erasing the iPhone does not touch the SIM card. If you want to remove the SIM, you can eject it using the SIM tray tool (a small pin that comes with the phone or can be purchased separately). The phone will work without a SIM, but you will not be able to make calls or use cellular data until you insert a SIM again.

Can I erase an iPhone remotely if I lost it?

Yes, if Find My iPhone is turned on. Go to iCloud.com on any computer, sign in with your Apple ID, open Find My, select the phone, and choose Erase This Device. The phone will erase the next time it connects to the internet. This is useful if you lost the phone and want to protect your data, but it will also lock the phone to your Apple ID, so the finder cannot use it without your password.

What if I forgot my Apple ID password?

Go to iforgot.apple.com and enter your Apple ID email. Apple will send you a reset link. If you cannot access that email, you can answer security questions or use a trusted phone number to verify your identity. Once you reset your password, you can use it to turn off Find My iPhone or erase the phone.

Does erasing the iPhone delete data from iCloud?

No. Erasing the iPhone only removes data from the phone itself. Photos, documents, and other data stored in iCloud remain in your iCloud account. If you want to delete iCloud data, you must do that separately through iCloud.com or the iCloud settings on another device.

How long does a complete erase take?

The erase itself usually takes 5 to 15 minutes on a phone you can unlock. If you are using a computer and recovery mode, add 10 to 30 minutes for the computer to read and reinstall iOS. The exact time depends on the iPhone model, how much data is on it, and your internet speed.