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

macOS 27 next to MacBook Pro Running macOS 27

Apple Announces 'Full Disk Access' Changes on macOS Due to AI Agents

Friday October 2, 2026 12:59 pm PDT by
In a post on its developer news website today, Apple announced that it will be introducing "additional controls" for the "Full Disk Access" setting on macOS due to new risks posed by AI agents. This announcement comes amid the rise of always-on AI agents like Meta's Muse and OpenAI's Dots, which have prompted privacy concerns. "Some developers are using Full Disk Access in ways that could...
iPhone 18 Pro Max Glacier Camera

Apple Says iPhone 18 Pro Max Users With AT&T Cellular Issue Need to Have Device Replaced

Friday October 2, 2026 8:21 pm PDT by
Apple today confirmed that a "small number" of iPhone 18 Pro Max users on the AT&T network have experienced an issue that causes the device to lose cellular service, thereby preventing phone calls, text messages, and data from working. Thousands of users complained about the issue across the Apple Support Community and other platforms. Apple said it released iOS 27.0.1 earlier this week and...
iPhone 18 Pro Max ATT

AT&T Acknowledges iPhone 18 Pro Max Issues: Update 'Immediately'

Thursday October 1, 2026 8:42 pm PDT by
In a text message sent to customers today, AT&T acknowledged that some iPhone 18 Pro Max devices on its network are experiencing cellular issues. AT&T said that customers should immediately update to iOS 27.0.1, despite the fact that many affected users have said that the update does not resolve the issues. There are now at least thousands of users that have experienced this problem,...
Latest Stories
iPhone Duo Makes Focus Modes Easier to Toggle From the Lock Screen
iPhone Duo Makes Focus Modes Easier to Toggle From the Lock Screen
30 minutes ago
EU iPhone and iPad Users Could Still Face Months-Long Wait for Siri AI
EU iPhone and iPad Users Could Still Face Months-Long Wait for Siri AI
57 minutes ago
Today Marks the 15th Anniversary of Steve Jobs' Death
Today Marks the 15th Anniversary of Steve Jobs' Death
2 hours ago
iPhone 18 Pro's Triple Live Activity Support Comes With a Catch
iPhone 18 Pro's Triple Live Activity Support Comes With a Catch
2 hours ago
Apple's New CEO John Ternus is Making Product Design a 'Major Priority'
Apple's New CEO John Ternus is Making Product Design a 'Major Priority'
8 hours ago
Apple Hiring 'iCup' Specialist
Apple Hiring 'iCup' Specialist
9 hours ago
MacBook Pro With OLED Display Rumored to Be 'Significantly Lighter'
MacBook Pro With OLED Display Rumored to Be 'Significantly Lighter'
9 hours ago
Apple Event Reportedly Planned for October 13
Apple Event Reportedly Planned for October 13
11 hours ago
Amazon Launches Early Prime Day Discounts on AirPods, iPad, MacBook Air, and More
Amazon Launches Early Prime Day Discounts on AirPods, iPad, MacBook Air, and More
19 hours ago
AirPods Pro 3 Hit Record Low $179 Price During Early Prime Day Sale
AirPods Pro 3 Hit Record Low $179 Price During Early Prime Day Sale
19 hours ago
Top Stories: Apple Smart Home Launch on October 13, iPhone Duo Production Issues, and More
Top Stories: Apple Smart Home Launch on October 13, iPhone Duo Production Issues, and More
2 days ago
Apple Says iPhone 18 Pro Max Users With AT&T Cellular Issue Need to Have Device Replaced
Apple Says iPhone 18 Pro Max Users With AT&T Cellular Issue Need to Have Device Replaced
2 days ago
Apple Announces 'Full Disk Access' Changes on macOS Due to AI Agents
Apple Announces 'Full Disk Access' Changes on macOS Due to AI Agents
3 days ago
AT&T and Apple Just Took Steps Toward Fixing iPhone 18 Pro Max Issue
AT&T and Apple Just Took Steps Toward Fixing iPhone 18 Pro Max Issue
3 days ago
AT&T on iPhone 18 Pro Max Issues: 'We Are Working With Apple'
AT&T on iPhone 18 Pro Max Issues: 'We Are Working With Apple'
3 days ago
Upgrading From an Older Apple Watch? Here's How the New Features Stack Up
Upgrading From an Older Apple Watch? Here's How the New Features Stack Up
3 days ago
Beats 360 Cushion Kits and Apple Accessories See Early Prime Day Price Drops
Beats 360 Cushion Kits and Apple Accessories See Early Prime Day Price Drops
3 days ago
Apple Store in UK Reopening on iPhone Duo Launch Day
Apple Store in UK Reopening on iPhone Duo Launch Day
3 days ago
AT&T Acknowledges iPhone 18 Pro Max Issues: Update 'Immediately'
AT&T Acknowledges iPhone 18 Pro Max Issues: Update 'Immediately'
3 days ago
New 'AirFly Drive' Accessory Turns Wired CarPlay Into Wireless CarPlay
New 'AirFly Drive' Accessory Turns Wired CarPlay Into Wireless CarPlay
4 days ago
Apple Shares Photos Shot on iPhone Duo
Apple Shares Photos Shot on iPhone Duo
4 days ago
Apple Says iPhone Duo Has Replaceable 'Cover Layer'
Apple Says iPhone Duo Has Replaceable 'Cover Layer'
4 days ago
Apple's Smart Home Camera Will Apparently Have 'No Video Recording'
Apple's Smart Home Camera Will Apparently Have 'No Video Recording'
4 days ago
Apple TV Just Updated Its Selection of 'Bonus' Movies
Apple TV Just Updated Its Selection of 'Bonus' Movies
4 days ago
iPhone 18 Pro Colors Buyer's Guide: Which Should You Choose?
iPhone 18 Pro Colors Buyer's Guide: Which Should You Choose?
4 days ago
Early Prime Big Deal Days: Best Discounts on Accessories, TVs, and More at Amazon
Early Prime Big Deal Days: Best Discounts on Accessories, TVs, and More at Amazon
4 days ago
MacBook Pro With OLED Touch Screen Rumored to Launch in October or November
MacBook Pro With OLED Touch Screen Rumored to Launch in October or November
4 days ago
Apple's All-New Home Hub Rumored to Launch in These Four Colors
Apple's All-New Home Hub Rumored to Launch in These Four Colors
4 days ago
iPhone 18 Pro Aperture Control Goes Fully Manual in Halide 3.2
iPhone 18 Pro Aperture Control Goes Fully Manual in Halide 3.2
4 days ago
Apple Stores Receive 'Do Not Open' Boxes Ahead of Smart Home Products Launch
Apple Stores Receive 'Do Not Open' Boxes Ahead of Smart Home Products Launch
4 days ago