• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WebPhoneTech

How-to Guides for Your iPhone

  • All iPhone guides
  • Safari
  • Chrome & Firefox
    • Chrome
    • Firefox
    • Edge
  • Default apps
  • Security
  • About
You are here: Home / iPhone / How to Factory Reset an iPhone (Any Model, iOS 27)

How to Factory Reset an iPhone (Any Model, iOS 27)

April 30, 2025 By WebPhoneTech Editorial Team

To wipe an iPhone back to the way it left the factory, open Settings, tap General, tap Transfer or Reset iPhone, then tap Erase All Content and Settings. You confirm with your passcode and your Apple Account password, and a few minutes later the phone restarts at the Hello screen with none of your data on it.

These steps are written for iOS 27 and apply to every iPhone model that can run it, because the erase happens in software, not with buttons. Older versions of iOS put the same option in a different menu, which is covered further down. If you cannot get past the Lock Screen because you forgot the passcode, this method will not work for you; jump to the section on a forgotten passcode. For that case, erase a locked iPhone with Forgot Passcode or a computer restore instead.

What you need before you start

Erasing cannot be reversed, so a few minutes of preparation saves a lot of regret. Have these ready:

  • Your iPhone passcode. This is the number or code you type to unlock the phone. The erase asks for it.
  • Your Apple Account email and password. Your Apple Account (formerly called Apple ID) is the sign-in you use for iCloud and the App Store. The password is needed to turn off Find My and Activation Lock, the security lock that stops anyone else from activating the phone without your permission.
  • A recent backup. A backup is a saved copy of your apps’ data, settings and messages that you can load onto a new or erased iPhone later.
  • A Wi-Fi connection and some battery. Plugging the phone in is a sensible precaution while it backs up and erases.
  • Your carrier details if you use an eSIM. An eSIM is a digital SIM card built into the phone. During the erase you choose whether to keep it or delete it.

Back up the iPhone first

Anything that exists only on the phone, such as photos not synced to iCloud Photos or messages not stored in iCloud, disappears when you erase. The quickest way to protect it is an iCloud backup:

  1. Connect to Wi-Fi.
  2. Open Settings, tap your name, then tap iCloud.
  3. Tap iCloud Backup, then tap Back Up Now.
  4. Stay on Wi-Fi until it finishes. The date and time of the latest backup appear under the Back Up Now button, which is how you know it succeeded.
iCloud Backup screen showing Back Up Now and the time of the last backup
Use Back Up Now and wait for the last successful backup time to update. This recreation follows Apple’s published backup controls and uses a fictional 9:30 AM completion time; the status bar and account details are outside this detail.

If iCloud says you do not have enough storage, you can buy more or back up to a Mac or Windows PC instead. Apple explains both routes in its guide to backing up an iPhone with iCloud. For a walkthrough with more detail on settings and storage, see how to back up an iPhone to iCloud.

Erase all content and settings in iOS 27

Warning: the steps below permanently delete everything stored on the iPhone. Check that your backup finished, or that your data is already on your new phone, before you tap Continue in step 5.

  1. Open Settings and tap General.
  2. Scroll to the bottom and tap Transfer or Reset iPhone. You will see two choices on this screen: Reset and Erase All Content and Settings.
Transfer or Reset iPhone screen in iOS 27 with Erase All Content and Settings highlighted
Tap Erase All Content and Settings to begin a factory reset. The thin outline marks Reset, which opens settings-only reset choices. This recreation follows Apple’s published iOS 27 Transfer or Reset iPhone screen.
  1. Tap Erase All Content and Settings. Do not tap Reset for this job. The Reset menu only puts settings back to their defaults and leaves your data in place.
  2. Read the summary. The iPhone lists the apps, data, accounts and services that will be removed.
  3. Tap Continue.
  4. Make the eSIM choice if you are asked. The options are Keep eSIM and Erase Data, or Delete eSIM and Erase Data. Keep it if you are keeping the phone on the same plan. Delete it if the phone is going to someone else. If you delete it and later need it again, you will have to contact your carrier to reactivate your cellular plan.
Alert offering Keep eSIM and Erase Data or Delete eSIM and Erase Data
The eSIM confirmation offers Keep eSIM and Erase Data or Delete eSIM and Erase Data. This recreation follows Apple’s published iOS 27 alert; keeping the eSIM preserves the cellular plan on this phone.
  1. Enter your passcode.
  2. Let the backup finish if one starts. The iPhone may upload a final iCloud backup before erasing.
  3. Enter your Apple Account password and tap the done key on the keyboard. This signs the phone out of your account and turns off Find My and Activation Lock.
  4. Wait for the erase to finish. The iPhone restarts and works through the erase on its own. Leave it alone until the Hello screen appears.

Apple lists the same sequence in its article on how to factory reset your iPhone, and the iOS 27 user guide page on erasing iPhone confirms the menu path.

Extra steps when you sell, trade in or give away the iPhone

The erase removes your data and, when you enter your password, releases Activation Lock. A clean handoff involves a few more tasks that are easier to do before you wipe the phone:

  • Move your data to your new phone first. If you are upgrading, transfer everything to the new iPhone, then check that it all arrived before erasing the old one.
  • Unpair your Apple Watch. Apple recommends doing this before you erase the iPhone. The steps are in this guide to unpairing an Apple Watch from an iPhone.
  • Sign out of your Apple Account if you prefer to do it as a separate step. In iOS 26 and later, go to Settings, tap your name, scroll down and tap Sign Out. Apple’s sign-out screen offers to erase the iPhone or to sign out without erasing.
  • Deal with AppleCare. Cancel your plan or transfer it to the new owner.
  • Turn off iMessage if you are switching to a non-Apple phone, so texts from other iPhone users reach your new number.
  • Choose Delete eSIM during the erase. Apple recommends erasing the eSIM profile on a phone you are selling. If the phone has no SIM at all, ask your carrier to move service to the new owner.
  • Remove the phone from your trusted devices in your Apple Account settings after it is gone.

Apple keeps the full checklist on its page about what to do before you sell, give away or trade in your iPhone.

If you already handed the phone over

You can still clean it up remotely. Sign in at icloud.com/find on a computer, select the old iPhone, choose Erase This Device (leave the phone number and message blank, because the phone is not lost), and after the erase completes, choose Remove This Device. That clears Activation Lock so the new owner can activate it. Apple describes this in removing a device from Find Devices on iCloud.com. If the phone is offline, the erase starts the next time it connects to the internet.

Erasing on older versions of iOS

The option has the same name on older software, but it sits in a different menu. On older releases, such as iOS 13, go to Settings, then General, then Reset, then tap Erase All Content and Settings. If your phone shows a Reset row directly under General and no Transfer or Reset iPhone row, use this route. After you tap it, the passcode and Apple Account prompts work the same way.

Erasing with a Mac or Windows PC

Apple recommends erasing on the iPhone itself whenever the phone works. A computer restore makes sense when the Settings method keeps failing or the software is too unstable to use. It erases everything and installs the latest version of iOS.

  1. Update your computer and back up the iPhone.
  2. On the iPhone, turn off Find My: open Settings, tap your name, tap Find My, and turn it off with your Apple Account password.
  3. Connect the iPhone with a cable. Allow the connection on both the computer and the phone, and enter your passcode if asked.
  4. Open Finder on a Mac or the Apple Devices app on a Windows PC. On a Mac running macOS 10.14 or earlier, or a PC without the Apple Devices app, use iTunes instead.
  5. Select the iPhone in the sidebar, click General at the top of the window, then click Restore iPhone and confirm with Restore. When the restore finishes, the Hello screen appears.

A computer restore does not delete your eSIM. The full instructions are on Apple’s page about restoring an iPhone to factory settings with a computer.

If you forgot your passcode

Everything above assumes you can unlock the phone. If you cannot, there is no supported way to open it and keep its data; the only route is to erase it and restore a backup afterward. On iOS 15.2 and later, entering the wrong passcode repeatedly brings up an iPhone Unavailable screen. When the phone is online and Find My was turned on, recent versions show Forgot Passcode?, then Start iPhone Reset, which erases the phone after you enter your Apple Account password. If that option does not appear, you can restore the phone with a computer in recovery mode.

Both routes are explained in detail in how to factory reset an iPhone without the passcode, and Apple covers them in resetting a forgotten passcode without a computer. Avoid apps that promise to unlock an iPhone without erasing it or to remove Activation Lock. They cannot get around Apple’s security, some ask for your account details, and none of them are an Apple-supported route.

When the erase does not go as planned

The iPhone asks for Face ID or Touch ID and will not take the passcode

This happens when Stolen Device Protection is on and the phone is away from familiar places such as home or work. With it enabled, erasing all content and settings requires Face ID or Touch ID, with no passcode fallback. Do the erase at home, or use Face ID or Touch ID when prompted. Apple lists every protected action in About Stolen Device Protection for iPhone.

You do not remember your Apple Account password

Reset the password before you erase, using Apple’s account recovery options. If you erase without signing out, Activation Lock stays on and the next person to set up the phone will be asked for your password. That is why a sold iPhone can come back to you as locked.

The iCloud backup will not complete

Usually the cause is a weak Wi-Fi connection or a full iCloud storage plan. If the erase offers to continue without finishing the backup, stop and fix the backup first, unless you are sure everything you need is already stored elsewhere.

The option is missing or greyed out

Phones issued by an employer or school are often managed with mobile device management (MDM), which can block erasing. Ask the organization’s IT team to release the device. On a personal phone, check that you are in Transfer or Reset iPhone and not in the Reset submenu, and check for Screen Time limits set by a parent or guardian.

You only wanted to fix a setting

If Wi-Fi, Bluetooth or cellular data misbehaves, a full erase is overkill. Try resetting network settings on the iPhone first. Under Transfer or Reset iPhone, tapping Reset and then Reset All Settings returns every setting to its default but keeps your photos, apps and messages, as Apple explains in Reset All Settings on iPhone.

Check that it worked and get your data back

A successful erase ends at the Hello screen, the same screen a brand new iPhone shows. If you are giving the phone away, stop there and let the new owner set it up.

If you are selling it, you can make sure your account let go of it: sign in at icloud.com/find and check that the phone is no longer in your device list. If it still appears, select it and choose Remove This Device.

There is no undo for an erase. The way back is your backup. When you set the phone up again, follow the prompts until you reach the screen for transferring apps and data, choose to restore from an iCloud backup, sign in, and pick the most recent backup by date. This guide to restoring an iPhone from an iCloud backup walks through that part.

Common questions about wiping an iPhone

Does erasing the iPhone delete my photos from iCloud?

No. Erasing removes the copies on the phone and signs it out of iCloud, but content stored in iCloud stays in your account. Be careful about deleting things one by one before the erase, though: while you are signed in, deleting a photo or contact on the phone deletes it from iCloud and your other devices too.

Will erasing change my version of iOS?

Erasing from Settings is about removing your data and settings, not updating software, so if you want the next owner to start on the latest iOS, update in Settings, then General, then Software Update before you erase. A computer restore is different: Apple notes that it installs the latest software for that model.

Is a factory reset the same as restarting or a hard reset?

No. Restarting turns the phone off and on, and a force restart (sometimes called a hard reset) uses a button sequence to restart a frozen phone. Neither one deletes data. Only Erase All Content and Settings, or a restore, wipes the iPhone.

Will I lose my phone number?

Your number belongs to your carrier account, not the phone. With a physical SIM, just take the card out. With an eSIM, choosing Keep eSIM keeps the plan on the phone; choosing Delete eSIM removes it, and your carrier can reactivate the number on another device.

Do I need to remove my Apple Pay cards first?

Not if you erase the phone yourself; Apple notes that erasing removes Apple Pay cards along with your other content. If the phone is already out of your hands, Apple’s checklist for selling an iPhone recommends removing your cards and changing your Apple Account password.

Once the Hello screen appears, the old iPhone is ready for its next owner. If the reset was part of an upgrade, give your new phone a day or two of use before you sell the old one, so you can be confident nothing was left behind.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook

Related

About WebPhoneTech Editorial Team

The WebPhoneTech Editorial Team writes and maintains the iPhone guides on this site. The team has more than 20 years of experience writing online tech guides and over 50 years of combined IT experience with small businesses, consumer products, mobile devices and applications.

Primary Sidebar

Browse topics

All iPhone guidesSafariChromeFirefoxDefault appsSecurity

Recent guides

  • How to Use Live Voicemail on iPhone
  • How to Remove a Bluetooth Device from Your iPhone 14
  • How to Download Offline Maps on iPhone
  • How to Use StandBy Mode on iPhone
  • How to Use Passkeys on iPhone (iOS 27)
  • Contact
  • About Us
  • Privacy Policy

Copyright WebPhoneTech.com

Loading Comments...

You must be logged in to post a comment.