You need either the password, a recovery key, or access to a trusted device
Apple does not let you erase an Apple ID from an iPhone without proving you own the account. If you have forgotten the password, you have three paths forward: reset the password using your recovery email or phone number, use a recovery key if you saved one, or sign out on a trusted device where you are already logged in. If none of those work, you will need to contact Apple Support with proof of purchase.
The reason for this design is security. Your Apple ID protects your photos, messages, payment methods, and device backups. Letting anyone erase it without proof would leave your account open to theft. Understanding which path applies to your situation will save you hours of frustration.
Key Takeaways
- If you remember your Apple ID email but not the password, you can reset the password through your recovery email or phone number without leaving your iPhone.
- A recovery key — a 28-character code you may have saved when setting up two-factor authentication — lets you sign out without the password.
- If you have access to another device where you are already signed in to the same Apple ID, you can sign out from that device and then remove the ID from your iPhone.
- If you cannot use any of these methods, Apple Support can help, but you will need to prove you own the device and the account.
Resetting your password through email or phone number
This is the fastest route if you still have access to the recovery email address or phone number linked to your Apple ID. On your iPhone, go to Settings, tap your name at the top, then tap Password & Security. Choose Change Password. You will be asked to enter your current password first — but there is a link below that says "Don't have access?" Tap it.
Apple will then ask you to verify your identity using either your recovery email or a code sent to your recovery phone number. Once you verify, you can create a new password. After that, go back to Settings, tap your name, scroll down to find the account section, and tap Sign Out. You will be prompted to enter your new password to complete the sign-out.
If you no longer have access to the recovery email or phone number — for example, you changed phone carriers or closed that email account — this method will not work. Move to the next section.
Using a recovery key if you have one
When you first set up two-factor authentication on your Apple ID, Apple offered you a 28-character recovery key to save in a safe place. If you kept that key, you can use it to sign out without the password. The key looks like this: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX (with letters and numbers instead of X).
Go to Settings, tap your name, then tap Password & Security. Tap Change Password. When prompted, tap "Don't have access?" and choose to verify with your recovery key instead of email or phone. Enter the key, then create a new password and sign out as described above.
If you never saved a recovery key or cannot find it, you will need to try one of the other methods.
Signing out from a trusted device
If you own another device — a Mac, iPad, or another iPhone — where you are already signed in to the same Apple ID, you can sign out from that device. This removes the Apple ID from all your devices, including the iPhone you are trying to clear.
On the trusted device, go to Settings (or System Settings on a Mac), tap your name, scroll to the bottom, and tap Sign Out. You will be asked for the Apple ID password — but if you do not have it, look for an option to use your recovery key or two-factor verification instead. Once you sign out from that device, your Apple ID will be removed from your iPhone within a few minutes.
What to do if you have none of these options
If you cannot reset your password, do not have a recovery key, and do not have access to another signed-in device, contact Apple Support. You can reach them through the Apple Support app on your iPhone, through apple.com/support, or by calling 1-800-MY-APPLE. Have your device serial number and proof of purchase ready — a receipt, credit card statement, or order confirmation from apple.com.
Apple will verify that you own the device and the account, then help you regain access. This process usually takes one to three business days. During that time, your iPhone will remain locked to your Apple ID for security reasons.
Why Apple locks you out without proof
set up Lock is the feature that prevents anyone from erasing your Apple ID without permission. It exists because a stolen iPhone is worthless to a thief if they cannot remove the original owner's account. The same protection that frustrates you when you forget your password also protects you if your phone is ever stolen.
This is why Apple requires proof of identity before letting you remove an Apple ID. It is the same reason banks require identification before closing an account or changing a password.
Frequently Asked Questions
Can I erase my iPhone and set it up as new without removing the Apple ID?
No. If you erase your iPhone through Settings > General > Reset > Erase All Content and Settings, the phone will ask for your Apple ID password before it completes the erase. This is set up Lock. You cannot bypass it without the password, recovery key, or proof of ownership.
What if I bought the iPhone used and the previous owner's Apple ID is still on it?
Contact the previous owner and ask them to remove their Apple ID using one of the methods above. If you cannot reach them, contact Apple Support with your proof of purchase. Apple can remove the previous owner's account if you can show you now own the device.
Does factory reset remove the Apple ID?
No. A factory reset erases your data and settings, but set up Lock keeps the Apple ID in place. The phone will ask for the Apple ID password when you try to set it up again. You must remove the Apple ID before or during the setup process.
Can I remove just the Apple ID without erasing the iPhone?
Yes. Go to Settings, tap your name, scroll down, and tap Sign Out. You will be asked for the Apple ID password. If you do not have it, use the password reset, recovery key, or trusted device methods described above. Your data stays on the phone; only the Apple ID is removed.