How to Erase and Reset a Locked iPhone or iPad - MacRumors
Skip to Content

How to Erase and Reset a Locked iPhone or iPad

by

If you've forgotten the passcode for your iPhone or iPad, you can erase and reset or restore the device using your Apple ID and password. This article explains how.

ios 13 iphone ipad duo
iPhone passcodes are usually six digits long, but they can still be forgotten, especially if the device hasn't been used for a while. If you find yourself in this predicament, you have the option to erase and reset it, after which you can restore the contents from a backup.

If you enter the wrong passcode several times on an iPhone running an iOS version earlier than iOS 15.2, your iPhone will disable itself for a time and you'll need to connect it to a computer and restore it from a backup.

If the iPhone is running iOS 15.2 or later, you won't need to connect it to a Mac or PC to reset it. Instead, you'll get an option to erase it when it's in Security Lockout mode, and you'll be able to restore from an iCloud backup.

The series of steps below outline the actions you need to take in both cases.

How to Reset a Locked iPhone Running iOS 15.2

The following steps assume your iPhone or ‌iPad‌ is running iOS 15.2 or iPadOS 15.2 or later, and is connected to a cellular or Wi-Fi network. Note that if you restart your device when you see "Security Lockout" on the Lock Screen, you won't be able to reconnect to a Wi-Fi network until your device is unlocked.

  1. From your device's Lock Screen, try entering your passcode several times until it asks you to try again later. When you can, repeat this action until you see the Erase iPhone/‌iPad‌ option in the bottom corner of the screen.
  2. Tap Erase iPhone/iPad, then tap Erase iPhone/iPad again to confirm.
    Lock Screen

  3. Enter your ‌Apple ID‌ password to sign out of your Apple account on the device.
  4. Tap Erase iPhone/iPad once again to permanently delete all of your data and settings.
  5. When the iOS device restarts, follow the onscreen instructions to set it up again, restore your data and settings from a backup, and set a new passcode.

How to Restore a Locked iPhone Running iOS 15.1 or Earlier

  1. First, put your iPhone into DFU recovery mode.
  2. Next, connect it to a PC or Mac using a Lightning cable.
  3. Select your iPhone in the Finder sidebar on Mac, or in iTunes on the PC that it's connected to.
  4. Choose Restore when you see the option to Restore or Update. If the download takes more than 15 minutes and your device exits the recovery mode screen, let the download finish, then turn off your iPhone and start again.
    recovery mode iphone finder

  5. Wait for the process to complete.
  6. Disconnect your iPhone, then turn it on and set it up.

If you're planning on trading in an old iPhone for a new one, there are some steps you'll want to take beforehand to ensure it's de-linked from your accessories and accounts and that everything on it is erased.

Related Forum: iOS 15

Popular Stories

Apple TV 4K HomeView HomePod Mini tweaked

New Apple TV 4K, HomeView, and HomePod Mini: 16 Details Just Leaked

Sunday October 11, 2026 12:56 pm PDT by
Just two days before Apple's "Welcome home" experience in New York, Bloomberg's Mark Gurman has leaked several details about the new products set to be unveiled, including an all-new smart home hub, a HomePod mini 2, and a new Apple TV 4K. Here is an all-in-one summary of the details shared by Gurman:Apple's home hub with a touch-enabled display will be named HomeView, seemingly confirming a ...
Apple HomeView lineup feature1

Apple Announces 'HomeView' Smart Home Hub

Tuesday October 13, 2026 6:00 am PDT by
Apple today announced the "HomeView," an all-new kind of smart home hub featuring a 7-inch Liquid Retina display and Siri AI. Apple's senior vice president of Worldwide Marketing Greg Joswiak said: Apple HomeView is designed to be shared by everyone in the home yet feel completely personal to each user. It recognizes your face to shift from a household screen to your own experience,...
Apple TV 4K 4th Generation feature4

New Apple TV 4K Announced With A19 Chip, Updated Siri Remote, More

Tuesday October 13, 2026 6:08 am PDT by
Apple today announced the fourth-generation Apple TV 4K, with key features including an A19 chip, Siri AI support, an updated Siri Remote that has Find My support with Precision Finding, built in far-field microphones, support for surround sound with four HomePods in front and rear pairs, and more. The A19 chip in the new Apple TV 4K delivers up to 50% faster CPU performance and up to twice...
Latest Stories
iPhone Duo Compromises: Everything You Have to Give Up
iPhone Duo Compromises: Everything You Have to Give Up
8 minutes ago
Apple HomeView Has These 15 Apps, Some CarPlay Apps and Widgets Also Supported
Apple HomeView Has These 15 Apps, Some CarPlay Apps and Widgets Also Supported
14 minutes ago
iPhone Duo: Apple Charging $49 for New Cover Layer, $229 for Battery
iPhone Duo: Apple Charging $49 for New Cover Layer, $229 for Battery
54 minutes ago
iPhone Duo: Skipping AppleCare+ Could Be $1,499 Mistake
iPhone Duo: Skipping AppleCare+ Could Be $1,499 Mistake
1 hour ago
Ready for HomeView? Don't Miss These Smart Home Accessory Deals
Ready for HomeView? Don't Miss These Smart Home Accessory Deals
2 hours ago
Apple Says HomePod 2 Also Works as Default Speaker With Select Macs
Apple Says HomePod 2 Also Works as Default Speaker With Select Macs
2 hours ago
HomePod Mini 2: All the New Features
HomePod Mini 2: All the New Features
2 hours ago
WhatsApp Now Lets Anyone Join Calls, No Account Needed
WhatsApp Now Lets Anyone Join Calls, No Account Needed
2 hours ago
AppleCare+ Launched 15 Years Ago Today
AppleCare+ Launched 15 Years Ago Today
2 hours ago
Apple Reportedly Planning Large iPhone 18 Production Run
Apple Reportedly Planning Large iPhone 18 Production Run
3 hours ago
Apple Says These Products Are Now Obsolete
Apple Says These Products Are Now Obsolete
3 hours ago
First Pre-Order Discounts Now Available for HomeView
First Pre-Order Discounts Now Available for HomeView
4 hours ago
Apple Launched iPhone 4S With Siri 15 Years Ago Today
Apple Launched iPhone 4S With Siri 15 Years Ago Today
4 hours ago
Apple HomeView Includes Temperature and Humidity Sensors
Apple HomeView Includes Temperature and Humidity Sensors
4 hours ago
HomePod Mini vs. HomePod Mini 2 Buyer's Guide: All Differences Compared
HomePod Mini vs. HomePod Mini 2 Buyer's Guide: All Differences Compared
4 hours ago
Apple Watch Sleep Apnea Notifications Launch in China
Apple Watch Sleep Apnea Notifications Launch in China
5 hours ago
HomeView's Faces Include Snoopy, Photos, and Interactive Artwork
HomeView's Faces Include Snoopy, Photos, and Interactive Artwork
5 hours ago
Apple's HomeView Repair Fees Revealed
Apple's HomeView Repair Fees Revealed
16 hours ago
Everything Apple Still Has Coming in October
Everything Apple Still Has Coming in October
17 hours ago
Welcome Home: Everything Apple Announced on October 13
Welcome Home: Everything Apple Announced on October 13
18 hours ago
Will the Full-Sized HomePod Get Siri AI? Apple's Website Offers a Clue
Will the Full-Sized HomePod Get Siri AI? Apple's Website Offers a Clue
18 hours ago
Apple Releases Third Public Betas of iOS 27.2 and macOS Golden Gate 27.2
Apple Releases Third Public Betas of iOS 27.2 and macOS Golden Gate 27.2
18 hours ago
iOS 27.2 Adds New Apple Music Icon
iOS 27.2 Adds New Apple Music Icon
18 hours ago
HomePod Mini 2 Works as Default Speaker With Select Macs
HomePod Mini 2 Works as Default Speaker With Select Macs
19 hours ago
Elevation Lab Pulls AirTag Silencer After Stalking Concerns
Elevation Lab Pulls AirTag Silencer After Stalking Concerns
19 hours ago
iOS 27.2 Beta 4 Removes New Health App
iOS 27.2 Beta 4 Removes New Health App
20 hours ago
iPhone Duo Will Have Day-One iOS 27.1 Update
iPhone Duo Will Have Day-One iOS 27.1 Update
20 hours ago
Where to Pre-Order Apple's New HomeView, HomePod Mini 2, and Apple TV 4K
Where to Pre-Order Apple's New HomeView, HomePod Mini 2, and Apple TV 4K
21 hours ago
Apple Releases New AirPods Beta Firmware
Apple Releases New AirPods Beta Firmware
22 hours ago
Apple Seeds Fourth macOS Golden Gate 27.2 Beta to Developers
Apple Seeds Fourth macOS Golden Gate 27.2 Beta to Developers
22 hours ago