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 pro tell logo

Apple Launching Five New Products This Friday

Monday November 2, 2026 1:22 am PST by
Apple is releasing five new products this Friday, November 6, following pre-orders that opened last week, including its first touchscreen MacBook Pro models. The following new products will be available from Friday: iPad mini with OLED display and A20 Pro chip iMac with M6 chip 14-inch MacBook Pro with M6 chip 14-inch MacBook Pro with OLED touchscreen 16-inch MacBook Pro with OLED...
Apple Logo Gradient 16x9 1

Apple Isn't Done With 2026: Here's What's Still Coming

Monday November 2, 2026 7:27 am PST by
Apple's busiest season isn't over yet. Far from it. With two hardware launch dates still to come in November, plus software updates and new smart home accessories running into December, there's more on the way from Apple before the end of 2026, so be sure to stick around. Below, we've rounded up what's still coming, along with one date in particular that's worth watching if you're a holiday...
Apple Store Logo

Apple Store in UK Permanently Closing Later This Month

Tuesday November 3, 2026 7:34 am PST by
Apple today announced that its Festival Place store in Basingstoke, England will be permanently closing on Saturday, November 21. Apple Festival Place Apple had already announced that the store would be closing in November, but it had not provided the public with a specific date until now. Apple's store inside the Festival Place shopping center opened in 2011, so it had a 15-year run....
Latest Stories
Apple Releases Safari Technology Preview 256 With Bug Fixes and Performance Improvements
Apple Releases Safari Technology Preview 256 With Bug Fixes and Performance Improvements
2 hours ago
Apps Can Now Try to Stop You From Canceling Subscriptions
Apps Can Now Try to Stop You From Canceling Subscriptions
2 hours ago
'Super Mario Odyssey' Can Now Run on Apple TV Thanks to AI
'Super Mario Odyssey' Can Now Run on Apple TV Thanks to AI
3 hours ago
How 'Resident Evil' Director Zach Cregger Uses His iPhone to Make Movies
How 'Resident Evil' Director Zach Cregger Uses His iPhone to Make Movies
4 hours ago
HomePod Mini 2's Amount of RAM Confirmed
HomePod Mini 2's Amount of RAM Confirmed
4 hours ago
Apple TV's '12 Days of Snoopy' Special Arrives November 13
Apple TV's '12 Days of Snoopy' Special Arrives November 13
5 hours ago
Apple is Putting Employees on an AI Budget
Apple is Putting Employees on an AI Budget
6 hours ago
Apple Releases Xcode 27.3 Beta With Three New Features
Apple Releases Xcode 27.3 Beta With Three New Features
7 hours ago
Apple Will Check Public iCloud Links for Harmful Content Starting in iOS 27.3
Apple Will Check Public iCloud Links for Harmful Content Starting in iOS 27.3
7 hours ago
macOS 27.3 Brings Live Activities to Macs Without Dynamic Island
macOS 27.3 Brings Live Activities to Macs Without Dynamic Island
8 hours ago
Apple TV Reportedly Planning 'Silo' Spinoff
Apple TV Reportedly Planning 'Silo' Spinoff
9 hours ago
Is It Worth Buying a Titanium Apple Watch?
Is It Worth Buying a Titanium Apple Watch?
10 hours ago
macOS 27.3 Includes an Important Security Fix
macOS 27.3 Includes an Important Security Fix
10 hours ago
Massive Sale Hits Apple Watch Ultra 3 With Record Low $250 Discounts
Massive Sale Hits Apple Watch Ultra 3 With Record Low $250 Discounts
11 hours ago
Does HomePod Mini 2 Have Improved Sound? Here's What Reviews Say
Does HomePod Mini 2 Have Improved Sound? Here's What Reviews Say
11 hours ago
macOS 27.3 Makes Markdown Files Easier to Read
macOS 27.3 Makes Markdown Files Easier to Read
11 hours ago
HomeView Pre-Order Returns to $289.99 on Amazon
HomeView Pre-Order Returns to $289.99 on Amazon
12 hours ago
Apple May Phase Out Non-Touch High-End MacBook Pros
Apple May Phase Out Non-Touch High-End MacBook Pros
13 hours ago
Apple's Insider Trading Policy Now Covers Prediction Markets
Apple's Insider Trading Policy Now Covers Prediction Markets
13 hours ago
'Stick' Season 2 Premieres Today on Apple TV
'Stick' Season 2 Premieres Today on Apple TV
13 hours ago
iPhone 18e Rumored to Focus on Chip Upgrade With Few Major Changes
iPhone 18e Rumored to Focus on Chip Upgrade With Few Major Changes
14 hours ago
Google Maps Updated to Fully Support iPhone Duo Displays
Google Maps Updated to Fully Support iPhone Duo Displays
14 hours ago
Everything New in the iOS 27.3 Beta
Everything New in the iOS 27.3 Beta
1 day ago
Apple Music's New Selfie Sing Feature Lets You Record Karaoke Videos
Apple Music's New Selfie Sing Feature Lets You Record Karaoke Videos
1 day ago
iPhone Jailbreak Gets Past Lockdown Mode and Survives an Update
iPhone Jailbreak Gets Past Lockdown Mode and Survives an Update
1 day ago
iPadOS 27.3 Expands Siri Mode to Camera App
iPadOS 27.3 Expands Siri Mode to Camera App
1 day ago
Veterans Day Apple Watch Activity Challenge Launches November 11
Veterans Day Apple Watch Activity Challenge Launches November 11
1 day ago
Best Early Black Friday Mac Deals: Save Hundreds on MacBook Air, Mac Mini, and More
Best Early Black Friday Mac Deals: Save Hundreds on MacBook Air, Mac Mini, and More
1 day ago
Apple Fitness+ Gets Gym Strength Plans in iOS 27.3
Apple Fitness+ Gets Gym Strength Plans in iOS 27.3
1 day ago
iOS 27.3 Adding New StandBy Mode Features to iPhone 11 and Newer
iOS 27.3 Adding New StandBy Mode Features to iPhone 11 and Newer
1 day ago