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 Launches Two Products Today

Friday November 13, 2026 2:37 am PST by
Apple is releasing two new products today, Friday, November 13: the all-new Apple HomeView and the fourth-generation Apple TV 4K, both of which have been available to pre-order since mid-October. Apple HomeView: Apple's new smart home display, powered by Apple Intelligence with Siri AI, for entertainment and managing the home. Available in tabletop and wall-mounted models, it can recognize up...
imac video apple feature

November 20 to Mark the End of an Era at Apple

Wednesday November 11, 2026 7:51 am PST by
Apple has announced that the long-running Apple Support Community discussion forums for user-to-user tech support will be permanently closing on Friday, November 20. The forums have existed in some form for nearly 30 years, so it is the end of an era. Effective immediately, the Apple Support Community forums are in a read-only state, with new posts no longer being accepted. The final message ...
johny srouji

Apple's Johny Srouji Eyed to Replace Nvidia CEO Jensen Huang

Thursday November 12, 2026 4:29 am PST by
Apple's chief hardware officer Johny Srouji is being considered as a potential successor to Nvidia CEO Jensen Huang as the chipmaker's board prepares to remove its co-founder, according to Semafor. Citing a person familiar with the matter, the publication identified Srouji as one of the people under consideration for Nvidia's top job. It is unclear if Srouji has yet been approached or...
Latest Stories
HomeView Tidbits: Mirror, Sleep Timer, and Other Details
HomeView Tidbits: Mirror, Sleep Timer, and Other Details
9 hours ago
Siri AI Still Not Enabled on HomePod Mini 2 With Latest Software Update
Siri AI Still Not Enabled on HomePod Mini 2 With Latest Software Update
11 hours ago
Apple Releases tvOS 27.2.1 With Siri AI for Older Apple TVs
Apple Releases tvOS 27.2.1 With Siri AI for Older Apple TVs
12 hours ago
Microsoft 365 Outage Resolving After Nearly 24 Hours
Microsoft 365 Outage Resolving After Nearly 24 Hours
12 hours ago
iPhone Duo Survives 450,000 Folds, but Hinge is Weakening
iPhone Duo Survives 450,000 Folds, but Hinge is Weakening
13 hours ago
Apple TV 4K Launch Day Deal Arrives at Amazon
Apple TV 4K Launch Day Deal Arrives at Amazon
13 hours ago
The MacRumors Show: HomeView and Apple TV 4K First Impressions
The MacRumors Show: HomeView and Apple TV 4K First Impressions
14 hours ago
YouTube App Not Working on Your New Apple TV? Here's the Fix
YouTube App Not Working on Your New Apple TV? Here's the Fix
14 hours ago
Apple Meets Thai Officials Over iPhone Spyware Warnings
Apple Meets Thai Officials Over iPhone Spyware Warnings
15 hours ago
Apple Shares HomeView 27.2 Release Notes With List of Features
Apple Shares HomeView 27.2 Release Notes With List of Features
15 hours ago
HomeView in Québec: Apple Says Canadian French Support to Arrive in Software Update
HomeView in Québec: Apple Says Canadian French Support to Arrive in Software Update
16 hours ago
Apple Watch Ultra 3 Gets Big $250 Discounts Ahead of Black Friday
Apple Watch Ultra 3 Gets Big $250 Discounts Ahead of Black Friday
16 hours ago
Apple Says HomeView Sets New Record in Design-Focused Interview
Apple Says HomeView Sets New Record in Design-Focused Interview
16 hours ago
Best Apple Deals of the Week: AirTag 2 Hits Record Low Price, Plus Early Black Friday Sales
Best Apple Deals of the Week: AirTag 2 Hits Record Low Price, Plus Early Black Friday Sales
16 hours ago
iPhone 18 and 18e Coming in Spring 2027 With A20 Chip
iPhone 18 and 18e Coming in Spring 2027 With A20 Chip
17 hours ago
King Charles to Join Elton John's Apple Music Radio Show
King Charles to Join Elton John's Apple Music Radio Show
17 hours ago
Select 'Apple Home Collection' Accessories Now Available to Order
Select 'Apple Home Collection' Accessories Now Available to Order
17 hours ago
Major Microsoft 365 Outage Continues
Major Microsoft 365 Outage Continues
19 hours ago
Apple Launches Two Products Today
Apple Launches Two Products Today
21 hours ago
Hands-On With the New Apple TV 4K and Siri AI
Hands-On With the New Apple TV 4K and Siri AI
1 day ago
Siri AI Coming to Older Apple TV 4K Models in tvOS 27.2.1
Siri AI Coming to Older Apple TV 4K Models in tvOS 27.2.1
1 day ago
HomeView Launch Kicks Off as First Orders Reach Customers
HomeView Launch Kicks Off as First Orders Reach Customers
1 day ago
Apple Continues to Move Up iPhone Duo Delivery Dates
Apple Continues to Move Up iPhone Duo Delivery Dates
1 day ago
Apple Explains How HomeView Keeps Camera Data Private
Apple Explains How HomeView Keeps Camera Data Private
1 day ago
Apple Releases Updated HomeView Software 27.2 Before Launch
Apple Releases Updated HomeView Software 27.2 Before Launch
2 days ago
Apple Adds Samsung Foldables to Trade-In Program
Apple Adds Samsung Foldables to Trade-In Program
2 days ago
Apple Sports App Now Features UFC
Apple Sports App Now Features UFC
2 days ago
Trump Says Tim Cook Should Be Nvidia CEO as Jensen Huang Resigns
Trump Says Tim Cook Should Be Nvidia CEO as Jensen Huang Resigns
2 days ago
Apple Releases Emotional 2026 Holiday Ad Featuring MacBook Neo
Apple Releases Emotional 2026 Holiday Ad Featuring MacBook Neo
2 days ago
Apple's Official iPhone 18 Pro Cases and Watch Bands Get Big Discounts on Amazon
Apple's Official iPhone 18 Pro Cases and Watch Bands Get Big Discounts on Amazon
2 days ago