You can remove your iPhone passcode, but the method depends on whether you remember it
If you remember your current passcode, you can turn it off in Settings without losing any data. If you've forgotten it, you'll need to erase the phone and set it up again — there's no backdoor to bypass a forgotten code, and that's intentional. Apple built iPhone security so that only you can access your device, which means even Apple cannot unlock it for you.
The path you take matters because it determines whether your photos, messages, and other data stay on the phone or get wiped. Knowing which situation you're in before you start saves time and prevents accidental data loss.
Key Takeaways
- If you remember your passcode, go to Settings > Face ID & Passcode (or Touch ID & Passcode), enter your code, and tap "Turn Passcode Off."
- If you've forgotten your passcode, you must erase the phone using Find My iPhone, iCloud.com, or a computer — there is no way around this step.
- Erasing the phone wipes all data unless you have a backup; restoring from a backup after setup lets you recover photos, messages, and apps.
- If you don't have Find My iPhone turned on and can't access iCloud.com, you'll need to visit an Apple Store or authorized repair shop.
Removing a passcode you remember
Open Settings and tap Face ID & Passcode (on newer iPhones with face recognition) or Touch ID & Passcode (on older models with fingerprint). At the top of the screen, you'll see a field that says "Enter Passcode." Type in your current code.
Scroll down and tap "Turn Passcode Off." The phone will ask you to confirm. Tap "Turn Off" again. Your passcode is now removed, and anyone who picks up your phone can access it without entering a code. Your data stays on the phone — nothing is erased.
This method works only if you remember the code. If you've tried multiple times and locked yourself out, or if you genuinely don't know it, you cannot use this path.
Erasing and resetting if you've forgotten the passcode
When you don't remember your passcode, the only way forward is to erase the phone. This removes the passcode along with everything else on the device. You can then set it up as new or restore from a backup you made before you forgot the code.
You have three ways to erase: through Find My iPhone (if it's turned on), through iCloud.com (if you know your Apple ID password), or with a computer running macOS or Windows (if you have access to one). All three methods wipe the phone completely.
Before you start, think about whether you have a backup. If you backed up to iCloud or to a computer, you can restore your photos, messages, contacts, and apps after the phone is erased and set up again. If you have no backup, the data is gone.
Using Find My iPhone to erase remotely
If Find My iPhone is turned on (Settings > [Your Name] > Find My > Find My iPhone), you can erase the phone from another device or a web browser without having the phone in your hands.
Go to iCloud.com on any computer or phone. Sign in with your Apple ID. Click Find My (or Find My iPhone on older versions). Select your iPhone from the list of devices. Click "Erase iPhone." Confirm by entering your Apple ID password. The phone will erase over the next few minutes, even if it's powered off.
Once erased, the phone will show the setup screen. You can set it up as a new device or restore from an iCloud backup if you have one. Restoring from backup brings back your data but takes longer than setting up new.
Erasing through iCloud.com without the phone
If you don't have another device handy, you can erase from iCloud.com directly. Go to iCloud.com and sign in with your Apple ID and password. Click Find My, then Find My iPhone. Select your iPhone from the device list and click "Erase iPhone."
This method requires that you know your Apple ID password. If you've forgotten that too, you'll need to reset it through Apple's account recovery page before you can proceed. The recovery process can take a few hours to a few days depending on the security questions you set up.
Erasing with a computer using Finder or iTunes
If you have access to a Mac or Windows computer, you can connect your iPhone with a USB cable and erase it through Finder (on Mac) or iTunes (on Windows). This method works even if Find My iPhone is off or if you don't remember your Apple ID password.
On a Mac running macOS Catalina or newer, open Finder, plug in your iPhone, and click the device name in the sidebar. Click "General" and then "Restore." Choose whether to restore as new or from a backup. On older Macs or Windows computers, open iTunes, select your device, and click "Restore."
The computer will read the latest iPhone software and install it on the phone. This erases everything, including the passcode. After the restore finishes, you'll see the setup screen and can proceed from there.
What happens after you erase the phone
Once the phone is erased, it shows the "Hello" setup screen in the language you last used. You'll be asked to connect to Wi-Fi, sign in with your Apple ID, and choose whether to set up as new or restore from a backup.
If you restore from an iCloud backup, the phone downloads your photos, messages, mail, contacts, calendar, and most apps. This can take 30 minutes to several hours depending on how much data you have and your internet speed. Apps you bought but didn't back up may need to be downloaded again from the App Store.
If you set up as new, you start with a blank phone. You can add your email accounts, read apps, and restore photos from a computer backup later if you have one.
If you can't use Find My iPhone or iCloud.com
If Find My iPhone is off and you don't know your Apple ID password, you cannot erase the phone remotely. Your options are to visit an Apple Store, contact Apple Support, or take the phone to an authorized repair shop.
Apple Stores can verify your identity and help you regain access to your account or erase the device. This usually requires a government ID and proof of purchase or proof that you're the account holder. The process can take a few hours or may require a follow-up appointment.
If you bought the phone secondhand and don't have proof of purchase, the store may not be able to help you. In that case, the phone is locked to the previous owner's account and cannot be used.
Frequently Asked Questions
Will removing my passcode delete my photos and messages?
No. If you remember your passcode and turn it off in Settings, nothing is deleted. If you've forgotten your passcode and must erase the phone, everything is deleted unless you restore from a backup afterward.
Can I remove my passcode without erasing the phone if I forgot it?
No. There is no way to remove a forgotten passcode without erasing the phone. Apple designed it this way so that a thief cannot access your data even if they have your phone.
What if I don't have a backup and I erase my phone?
Your data is gone. Photos, messages, and other files stored only on the phone cannot be recovered after an erase. This is why backing up to iCloud or a computer before you forget your passcode matters.
How long does it take to erase and restore from backup?
Erasing takes a few minutes. Restoring from an iCloud backup can take 30 minutes to several hours depending on how much data you have and your internet speed. Restoring from a computer backup is usually faster.
Do I need my Apple ID password to erase my phone?
Not if you use Find My iPhone or a computer. You do need it if you erase through iCloud.com. If you've forgotten your Apple ID password, you can reset it on Apple's account recovery page, though the process may take several hours.