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

iPhone Duo Outer Display Hand

Apple Aiming to Upgrade the iPhone Duo in Four Ways

Sunday November 15, 2026 8:42 am PST by
Bloomberg's Mark Gurman today said Apple has four goals for future iPhone Duo models: Face ID, an Action button, a telephoto camera, and a thinner-and-lighter design. Gurman said Apple has already developed iPhone Duo 2 prototypes with Face ID on the outer display, but it is "running out of time" to finalize the feature for that model, so it might not arrive until the iPhone Duo...
iphone duo yellow hand

Apple Adds Facial Unlock Option on iPhone Duo in iOS 27.3

Monday November 16, 2026 10:17 am PST by
Apple today added a new option for unlocking the iPhone Duo using the front-facing camera, giving device users multiple ways to access their content. The feature is available in the second iOS 27.3 beta. The option to unlock with facial recognition is only available on the Lock Screen, and authentication via Touch ID is still needed for Apple Pay purchases, adding passwords and logins, and...
Apple Health AI Study App Feature

Apple Just Released a New App

Monday November 16, 2026 9:43 am PST by
Apple today launched a new research study in the U.S. to explore the use of AI for health, and it has released a dedicated iPhone app for participants. In a press release, Apple said the study and app are "designed to advance the understanding of how people interact with conversational health AI tools." The Apple Health AI Study App contains a generative AI chatbot that participants can...
Latest Stories
Everything New in iOS 27.3 Beta 2
Everything New in iOS 27.3 Beta 2
8 hours ago
Apple Plans to Release These 18 New Products Next Year
Apple Plans to Release These 18 New Products Next Year
9 hours ago
New Apple TV 4K Discount Returns at Amazon
New Apple TV 4K Discount Returns at Amazon
10 hours ago
iPhone Duo Orders Will Now Arrive Before the Holidays
iPhone Duo Orders Will Now Arrive Before the Holidays
10 hours ago
Hands-On With the iPhone Duo's New Face Unlock
Hands-On With the iPhone Duo's New Face Unlock
10 hours ago
macOS 27.3 Warns Against Giving AI Apps Full Mac Control
macOS 27.3 Warns Against Giving AI Apps Full Mac Control
11 hours ago
iPad and Mac Get Apple Intelligence in China in 27.3 Betas
iPad and Mac Get Apple Intelligence in China in 27.3 Betas
11 hours ago
Apple News+ Puzzles Come to UK, Australia, and French Canada
Apple News+ Puzzles Come to UK, Australia, and French Canada
12 hours ago
macOS Golden Gate 27.3 Beta 2 Now Available for Developers
macOS Golden Gate 27.3 Beta 2 Now Available for Developers
13 hours ago
Apple Celebrates Pokémon With iPhone Wallpapers and Special Gift Card
Apple Celebrates Pokémon With iPhone Wallpapers and Special Gift Card
13 hours ago
Apple TV App Gets Video Podcasts in iOS 27.3
Apple TV App Gets Video Podcasts in iOS 27.3
13 hours ago
Best Early AirPods Black Friday Deals Include AirPods Pro 3 for $179
Best Early AirPods Black Friday Deals Include AirPods Pro 3 for $179
13 hours ago
iOS 27.3 Adds 'Ask About Page' Siri AI Feature to Safari
iOS 27.3 Adds 'Ask About Page' Siri AI Feature to Safari
13 hours ago
Apple Says More Than 200,000 Apps Now Optimized for iPhone Duo
Apple Says More Than 200,000 Apps Now Optimized for iPhone Duo
13 hours ago
Apple Adds Facial Unlock Option on iPhone Duo in iOS 27.3
Apple Adds Facial Unlock Option on iPhone Duo in iOS 27.3
13 hours ago
iOS 27.3 Beta Adds Daily Siri AI Limits and iCloud+ Upgrades
iOS 27.3 Beta Adds Daily Siri AI Limits and iCloud+ Upgrades
14 hours ago
iOS 27.3 Beta 2 Now Available for Developers
iOS 27.3 Beta 2 Now Available for Developers
14 hours ago
Apple Launches Spanish Version of Its U.S. Website
Apple Launches Spanish Version of Its U.S. Website
14 hours ago
Apple Releases Second watchOS 27.3, tvOS 27.3 and visionOS 27.3 Betas
Apple Releases Second watchOS 27.3, tvOS 27.3 and visionOS 27.3 Betas
14 hours ago
Some OLED MacBook Pro Owners Report Eye Strain and Dizziness
Some OLED MacBook Pro Owners Report Eye Strain and Dizziness
14 hours ago
Didn't Order Apple's HomeView Yet? Wait Times Are Significant Now
Didn't Order Apple's HomeView Yet? Wait Times Are Significant Now
15 hours ago
Apple Pushes Back Against Canada's Plan to Access User Data
Apple Pushes Back Against Canada's Plan to Access User Data
15 hours ago
Black Friday TV Deals Include Year's Best Prices on Samsung, Sony, LG, and Many More
Black Friday TV Deals Include Year's Best Prices on Samsung, Sony, LG, and Many More
16 hours ago
Adobe's Black Friday Sale Takes 57% Off Creative Cloud Pro for Your First Year
Adobe's Black Friday Sale Takes 57% Off Creative Cloud Pro for Your First Year
17 hours ago
Apple's New HomeView Smart Home Hub Has Issues, Say Owners
Apple's New HomeView Smart Home Hub Has Issues, Say Owners
17 hours ago
'Slow Horses' to Hit 10-Season Milestone With Apple TV Renewal
'Slow Horses' to Hit 10-Season Milestone With Apple TV Renewal
18 hours ago
Apple Watch SE 3 Black Friday Deals Arrive With $50 Off Every Model
Apple Watch SE 3 Black Friday Deals Arrive With $50 Off Every Model
18 hours ago
Apple Confirms iOS 27.3 Beta 2 Coming Today
Apple Confirms iOS 27.3 Beta 2 Coming Today
18 hours ago
'iPhone 20 Pro' Rumored to Be Based on iPhone Air
'iPhone 20 Pro' Rumored to Be Based on iPhone Air
18 hours ago
iPhone 20 Pro Rumored to Feature New 17nm Camera Sensor
iPhone 20 Pro Rumored to Feature New 17nm Camera Sensor
19 hours ago