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. This is a security feature — it stops someone who steals your phone from locking you out of your own data. The three real paths forward are: use your password if you remember it, use a recovery key if you saved one, or use a trusted device that already has your account signed in.
If none of those explore, you will need to contact Apple Support directly. They can verify your identity through your purchase history, the phone's serial number, or other account details, and then help you regain access. This takes longer than the self-service routes, but it is the legitimate way forward if you are locked out.
Key Takeaways
- If you remember your Apple ID password, you can remove the account from Settings > [Your Name] > Sign Out, then enter the password when prompted.
- 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 another iPhone, iPad, or Mac signed into the same Apple ID, you can use that device to change your password, then use the new password on the locked iPhone.
- Apple Support can verify your identity and help you regain access if you have no password, recovery key, or trusted device.
- Factory resetting the iPhone without removing the Apple ID first will trigger set up Lock, which requires the Apple ID password to reactivate the phone.
Removing the account if you have the password
Open Settings and tap your name at the top. Scroll down and tap Sign Out. You will see a prompt asking for your Apple ID password — enter it. If you have two-factor authentication turned on, you may also need to enter a verification code sent to a trusted device or phone number.
After you sign out, the phone will ask whether you want to keep a copy of your iCloud data on the device (Photos, Mail, Contacts, and so on). Choose based on whether you need that information to stay on the phone. Then tap Sign Out again to confirm. The Apple ID is now removed from that iPhone.
Using a recovery key if you have one
A recovery key is a 28-character code that Apple generates when you turn on two-factor authentication. If you saved it in a password manager, a note, or printed it, you can use it to sign out without the password.
Go to Settings > [Your Name] > Sign Out. When the password prompt appears, tap Don't Have Password? (or similar text, depending on your iOS version). Choose Use Recovery Key and enter the code. Apple will verify it, and you can then complete the sign-out process. If you do not see this option, your account may not have two-factor authentication enabled, and you will need to use a different method.
Signing out from a trusted device
If you have another iPhone, iPad, or Mac that is already signed into the same Apple ID, you can use it to change your password. Once you change the password, you can use that new password to sign out on the locked iPhone.
On the trusted device, open Settings (or System Settings on Mac) and tap your name. Go to Password & Security and tap Change Password. Create a new password and save it somewhere you can access it on the locked phone. Then go to the locked iPhone, open Settings > [Your Name] > Sign Out, and use the new password to complete the sign-out.
What happens if you factory reset without signing out first
set up Lock is Apple's anti-theft system. If you erase the iPhone without removing the Apple ID first, the phone will ask for that Apple ID password the moment it starts up again. You cannot use the phone until you enter the correct credentials.
This is intentional — it prevents a thief from wiping your data and selling the phone as new. But it also means a factory reset does not solve the problem if you have forgotten the password. You still need the password, a recovery key, a trusted device, or Apple Support to get past set up Lock.
Contacting Apple Support to regain access
If you have no password, no recovery key, and no trusted device, Apple Support can help. Call 1-800-MY-APPLE or visit support.apple.com and start a chat. Have your phone's serial number ready — you can find it in Settings > General > About, or on the original box.
Apple will ask you to verify your identity. They may ask about your purchase history, the phone's original set up date, the email address on the account, or security questions you set up when creating the Apple ID. Once verified, they can send you a link to reset your password or walk you through removing the account from the phone. This process usually takes a few days.
Why Apple requires proof of ownership
set up Lock and the sign-out password requirement exist because iPhones hold sensitive data — photos, messages, financial information, health records. If anyone could erase an Apple ID from a stolen phone with a few taps, thieves could wipe your data and resell the device within minutes.
The trade-off is that you have to prove you own the account if you are locked out. This is inconvenient, but it is the same standard used by Google, Microsoft, and Samsung. The alternative — allowing anyone to remove an account without proof — would put your data at much greater risk.
Frequently Asked Questions
Can I remove an Apple ID by doing a factory reset?
No. A factory reset erases the phone's data but does not remove the Apple ID. When the phone restarts, set up Lock will require the Apple ID password before you can use it. You must remove the account first, or have the password to get past set up Lock afterward.
What if I do not remember which email address I used for my Apple ID?
Go to iforgot.apple.com and enter any email address you think might be connected to the account. Apple will tell you whether an account exists under that address. If you find the right one, you can use that page to reset your password, then use the new password to sign out on your iPhone.
Can someone else remove my Apple ID from my phone?
Only if they have your password, a recovery key, a trusted device signed into your account, or if they contact Apple Support and pass identity verification. They cannot do it with just physical access to the phone.
How long does it take Apple Support to help me regain access?
It varies. If you have proof of purchase or can answer security questions, it may take a few hours. If Apple needs to verify additional details, it can take one to three business days. Chat support is usually faster than phone support for this type of request.
If I remove my Apple ID, will I lose my photos and other data?
Not if you choose to keep a copy on the device when you sign out. Settings will ask whether you want to keep iCloud data locally — select yes, and your photos, contacts, and mail will stay on the phone even after the Apple ID is removed. If you select no, that data will be deleted from the phone (but remains in iCloud if you sign back in later).