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 Sans Remote Feature

New Apple TV 4K Leaked

Friday September 25, 2026 8:16 am PDT by
MacRumors contributor Aaron Perris has uncovered an image file from Apple for an unreleased Apple TV 4K, suggesting that a new model will finally be released soon. The image is specifically for an "Apple TV 4K (4th generation)" model. Apple TV 4K (4th generation) image (on a gradient) The image reveals that the Apple TV will have the same external design as the current model, with all of its...
HomePod minis Apple TV and iPad mini Leak Feature

iPad Mini With A20 Pro, New HomePod Mini Colors, and New Apple TV 4K All Just Leaked

Friday September 25, 2026 8:18 am PDT by
The next iPad mini, HomePod mini, and Apple TV 4K models have all leaked, just a few weeks before the devices are expected to be announced. Specifically, MacRumors contributor Aaron Perris discovered a few of Apple's official images of the devices, confirming their existence and some new features that are planned. The most notable iPad mini details revealed in today's leak include an A20 Pro ...
HomePod minis on gradient feature 1 1

Exclusive: First Look at HomePod Mini 2 in Three New Colors

Friday September 25, 2026 8:17 am PDT by
Apple's new HomePod mini will share the same design as the original model and come in five colors, MacRumors has found. The information originates from Apple's own code (spotted by MacRumors contributor Aaron Perris) and shows clear product images of the new models in all of their colors. The above image contains Apple's own icons, which specifically refer to a "HomePod mini 2." The new...
Latest Stories
watchOS 27: 12 New Things To Check Out on Your Apple Watch
watchOS 27: 12 New Things To Check Out on Your Apple Watch
9 minutes ago
Banks and Credit Unions to Team Up Against Apple Pay Fees
Banks and Credit Unions to Team Up Against Apple Pay Fees
12 hours ago
Apple Finally Shares tvOS 27 Release Notes With List of New Features
Apple Finally Shares tvOS 27 Release Notes With List of New Features
13 hours ago
Amazon's $199 Discount on Apple Watch Ultra 3 Returns to Help Clear Stock
Amazon's $199 Discount on Apple Watch Ultra 3 Returns to Help Clear Stock
13 hours ago
MacRumors Giveaway: Win an Apple Watch Ultra 4 From Lululook
MacRumors Giveaway: Win an Apple Watch Ultra 4 From Lululook
14 hours ago
Apple Code Confirms iPad 12 Specs: A19, 8GB RAM, N1, C1X Modem
Apple Code Confirms iPad 12 Specs: A19, 8GB RAM, N1, C1X Modem
14 hours ago
Some iPhone 18 Pro Max Users Experiencing AT&T Cellular Issues
Some iPhone 18 Pro Max Users Experiencing AT&T Cellular Issues
15 hours ago
Launch Week Deals Hit Latest Macs, Apple Watch Ultra 4, and Apple Accessories
Launch Week Deals Hit Latest Macs, Apple Watch Ultra 4, and Apple Accessories
15 hours ago
The MacRumors Show: Tyler Stalman Talks iPhone 18 Pro's Camera
The MacRumors Show: Tyler Stalman Talks iPhone 18 Pro's Camera
16 hours ago
iPad Mini With A20 Pro, New HomePod Mini Colors, and New Apple TV 4K All Just Leaked
iPad Mini With A20 Pro, New HomePod Mini Colors, and New Apple TV 4K All Just Leaked
16 hours ago
iPad Mini 8 Leaked: A20 Pro Chip, Landscape Camera, and More
iPad Mini 8 Leaked: A20 Pro Chip, Landscape Camera, and More
16 hours ago
Exclusive: First Look at HomePod Mini 2 in Three New Colors
Exclusive: First Look at HomePod Mini 2 in Three New Colors
16 hours ago
New Apple TV 4K Leaked
New Apple TV 4K Leaked
16 hours ago
Create a Custom Pass in the Wallet App on iPhone
Create a Custom Pass in the Wallet App on iPhone
21 hours ago
How to Check Your Mac's Manufacture Date in macOS 27
How to Check Your Mac's Manufacture Date in macOS 27
1 day ago
What's Gone in macOS Golden Gate and What's Next in macOS 28
What's Gone in macOS Golden Gate and What's Next in macOS 28
1 day ago
TestFlight App Gets New iOS 27 Features
TestFlight App Gets New iOS 27 Features
1 day ago
Google Photos Wardrobe Feature Comes to iOS
Google Photos Wardrobe Feature Comes to iOS
1 day ago
Apple Music to Host Free Head Trip Festival Livestream
Apple Music to Host Free Head Trip Festival Livestream
2 days ago
watchOS 27.2 Code Hints at iPhone-Style Screenshot Previews
watchOS 27.2 Code Hints at iPhone-Style Screenshot Previews
2 days ago
Beats 360 Headphones Now Available in Apple Stores
Beats 360 Headphones Now Available in Apple Stores
2 days ago
Apple Shares New Video Promoting iOS 27 Parental Controls
Apple Shares New Video Promoting iOS 27 Parental Controls
2 days ago
Apple Has Announced 12 New Products in the Past Month
Apple Has Announced 12 New Products in the Past Month
2 days ago
Apple Watch Ultra 2 vs. Ultra 4 Buyer's Guide: Should You Upgrade?
Apple Watch Ultra 2 vs. Ultra 4 Buyer's Guide: Should You Upgrade?
2 days ago
Here's When Apple TV is Airing Free 'Peanuts' Holiday Specials This Year
Here's When Apple TV is Airing Free 'Peanuts' Holiday Specials This Year
2 days ago
Square Announces Apple Business Integration
Square Announces Apple Business Integration
2 days ago
AirPods Pro 3 on Sale for $199 This Week on Amazon
AirPods Pro 3 on Sale for $199 This Week on Amazon
2 days ago
Qualcomm Announces Renewed Agreement With Apple
Qualcomm Announces Renewed Agreement With Apple
2 days ago
Apple Confirms iPhone 18 Pro Bug Fix Update is Coming Next Week
Apple Confirms iPhone 18 Pro Bug Fix Update is Coming Next Week
2 days ago
Full iPhone 4 'Antennagate' Q&A Video Surfaces After 16 Years
Full iPhone 4 'Antennagate' Q&A Video Surfaces After 16 Years
2 days ago