You can remove your iPhone passcode, but the method depends on whether you remember it
If you remember your passcode, you can turn it off in Settings without erasing anything. Go to Settings > Face ID & Passcode (or Touch ID & Passcode on older models), tap "Turn Passcode Off" at the bottom, enter your code once more, and confirm. Your phone stays exactly as it is — all apps, photos, and data remain.
If you've forgotten your passcode, you have no way to remove it without erasing the phone first. Apple built this in deliberately: a passcode you can't remember is useless as security, so the only path forward is to wipe the device and set it up fresh. This takes longer but keeps your data safe from someone who found your phone.
Key Takeaways
- If you remember your passcode, removing it takes two minutes through Settings with no data loss.
- If you've forgotten your passcode, you must erase the phone through iCloud, a computer, or Apple's Find My service before you can use it again.
- Erasing through iCloud requires your Apple ID and password, not your passcode, so you can do it from another device.
- After erasing, you can restore from a backup if you saved one before you forgot the code.
- If you don't have an Apple ID password either, you'll need to visit an Apple Store with proof of purchase.
Removing a passcode you remember
Open Settings on your iPhone. Scroll down and tap Face ID & Passcode (on newer iPhones with face recognition) or Touch ID & Passcode (on iPhones with a home button). You'll see a list of options at the top, including "Turn Passcode Off."
Tap "Turn Passcode Off." The phone will ask you to enter your current passcode to confirm you're the owner. Type it in. Then tap "Turn Off" when the confirmation screen appears. That's it — your passcode is gone, and your phone is now unprotected. You can turn it back on anytime by going to the same menu and tapping "Turn Passcode On."
Erasing your phone if you forgot the passcode
The fastest way is through Find My iPhone, Apple's remote management tool. Go to iCloud.com from any computer or another device, sign in with your Apple ID, and click Find My. Select your iPhone from the list of devices. Click "Find My iPhone" (or the device name), then scroll down and tap "Erase iPhone." Confirm your choice. The phone will erase itself over the next few minutes, even if it's powered off or far away.
If you don't have access to iCloud.com, you can erase the phone using a Mac or Windows computer with iTunes or Finder. Connect your iPhone with a USB cable, open Finder (Mac) or iTunes (Windows), select your device, and choose "Restore." This erases the phone and installs a fresh copy of iOS. You'll need your Apple ID password afterward to set it up again.
If you have neither iCloud access nor a computer, you can take your iPhone to an Apple Store. Bring proof of purchase (receipt, credit card statement, or Apple account history). Apple can erase the device and help you set it up, though this may take an hour or longer depending on how busy the store is.
What happens after you erase
Once the phone is erased, you'll see the setup screen — the same one you saw when the phone was brand new. You'll be asked to sign in with your Apple ID. This is a security step: it confirms you own the phone and prevents someone who stole it from using it.
After you sign in, you can restore from a backup if you made one before you forgot the passcode. iCloud automatically backs up your phone daily if you have iCloud+ or a free iCloud account with enough space. Go to Settings > [Your Name] > iCloud > iCloud Backup to check when your last backup was. During setup, you'll see an option to "Restore from iCloud Backup" — choose it and sign in again, and your apps, photos, messages, and settings will come back.
If you don't have a backup, you'll start with a blank phone. You can read your apps again from the App Store, and any data stored in the cloud (email, photos in iCloud, notes, contacts) will sync back automatically once you sign in.
Why you can't just remove a forgotten passcode
Apple doesn't let you remove a passcode without erasing the phone because a passcode is the only thing protecting your data if your phone is lost or stolen. If someone could remove a forgotten passcode without erasing anything, they could access all your messages, banking apps, photos, and accounts. By forcing an erase, Apple ensures that a thief can't use your phone — and you can restore your own data from backup once you prove you own the device by signing in with your Apple ID.
This is why it matters to remember your passcode or write it down somewhere safe. A passcode you can't remember is worse than no passcode at all, because you lose access to your own phone.
Preventing this in the future
If you use a passcode you're likely to forget, consider switching to Face ID or Touch ID instead. Both are faster to use daily and you don't have to remember anything. You can set up both on the same phone: your face or fingerprint unlocks it normally, but you can still use your passcode as a backup if your face or finger won't scan.
If you prefer a passcode, write it down and store it somewhere find — a password manager like 1Password or Bitwarden, a locked drawer at home, or even a note in your physical wallet. Don't store it in your phone's notes app or in a text message, because someone with access to your phone can read those. The goal is to have a way to look it up if you forget, without making it straightforward for someone else to find.
Frequently Asked Questions
Will erasing my iPhone delete my photos and messages?
Erasing deletes everything on the phone itself. But if you restore from an iCloud backup afterward, your photos, messages, and apps come back. If you don't have a backup, they're gone. Before you erase, check your iCloud backup date in Settings > [Your Name] > iCloud > iCloud Backup to see what you'll recover.
Can I remove my passcode if I remember it but don't have my Apple ID password?
Yes. If you remember your iPhone passcode, you can turn it off in Settings without needing your Apple ID password. You only need your Apple ID password if you've forgotten your passcode and need to erase the phone.
What if I don't remember my Apple ID password either?
Go to iforgot.apple.com and follow the steps to reset it. You'll need access to the email address or phone number linked to your account. Once you reset your password, you can use it to erase your iPhone through iCloud or set it up after erasing.
How long does it take to erase an iPhone through Find My?
The erase command sends when ready, but the phone may take a few minutes to several hours to actually erase, depending on whether it's powered on and connected to the internet. If the phone is off, it will erase the next time it connects to the internet.
Can I use my iPhone while it's erasing?
No. Once you start an erase through Find My or a computer, the phone becomes unusable until the erase finishes and you complete the setup process. Plan to be without your phone for at least 30 minutes to an hour.