You can sign out of iCloud on your device without entering your password
If you have physical access to your iPhone, iPad, or Mac, you can remove your iCloud account from the device without typing your password. The method depends on whether you remember your Apple ID email address and can receive a verification code on a trusted phone number or email. You will not be able to sign out completely if you do not have access to at least one of these recovery methods — Apple designed this protection to prevent someone else from locking you out of your own account.
The sign-out process differs between devices and iOS versions, but the core idea is the same: you go to Settings (or System Preferences on a Mac), find the iCloud section, and choose to remove the account. If you get stuck at a password prompt, you can request a verification code instead, which Apple will send to a phone number or email you set up when you created the account.
Key Takeaways
- On iPhone and iPad, go to Settings, tap your name at the top, scroll down, and tap "Sign Out" — you will be asked for your password or a verification code.
- If you do not remember your password, tap "Don't have access?" on the password screen to request a verification code sent to your phone or email.
- On a Mac, open System Preferences, click your Apple ID, select "Overview," and click "Sign Out" — the same password or verification code option applies.
- You must have access to a recovery email address or phone number linked to your Apple ID, or you cannot complete the sign-out.
- If you cannot access any recovery method, you will need to contact Apple Support or use Apple's account recovery process, which takes several days.
Sign out on iPhone or iPad
Open Settings and tap your name at the very top of the screen. Scroll all the way down and tap "Sign Out" in red text. You will see a prompt asking for your Apple ID password.
If you do not know your password, tap "Don't have access?" below the password field. Apple will offer to send a verification code to a phone number or email address associated with your account. Choose the recovery method you can access, and Apple will send a six-digit code within seconds. Enter that code on the next screen, and the sign-out will complete.
Before you finish, you will be asked whether to keep or delete a copy of your iCloud data (photos, notes, contacts, and so on) on the device. Choose based on whether you want to preserve that information locally. After you tap "Sign Out" one final time, your account is removed from the device.
Sign out on a Mac
Click the Apple menu in the top-left corner and select "System Preferences" (on older macOS) or "System Settings" (on macOS Ventura and newer). Click "Apple ID" or your name at the top of the sidebar.
Click "Overview" in the left panel, then click "Sign Out" at the bottom right. You will be prompted for your password. If you do not have it, click "Don't have access?" and follow the same verification code process as on iPhone — Apple will send a code to your recovery phone number or email.
You will also be asked whether to keep your iCloud data on the Mac. Select your preference and complete the sign-out. Your account will be removed from the device, though you can sign back in later with your Apple ID.
What to do if you cannot access a recovery method
If you do not remember your password and cannot access the phone number or email address Apple has on file, the verification code option will not work. In this case, you have two paths forward.
The first is to use Apple's account recovery process. Go to iforgot.apple.com, enter your Apple ID email, and follow the prompts. Apple will ask you to verify your identity using your device, recovery key, or trusted phone number. This process can take several days because Apple requires you to wait a security period before your account is unlocked.
The second is to contact Apple Support directly. You can reach them through the Apple Support app on your device, by calling 1-800-MY-APPLE, or by visiting an Apple Store. Have your device with you and be ready to answer security questions to prove you own the account. Apple Support can help you regain access to your account or, in some cases, help you sign out remotely.
Why Apple requires a password or verification code
Apple's requirement to verify your identity before signing out is a security feature. It prevents someone who has stolen your device from erasing your iCloud connection and then selling the phone without your knowledge. Even if a thief has your device, they cannot remove your account unless they also have your password or access to your recovery methods.
This same protection means you cannot sign out if you have lost access to both your password and your recovery contacts. It is frustrating in that situation, but it also means your account is harder to compromise.
Signing out versus erasing the device
Signing out of iCloud removes your account from the device but leaves your data and apps intact. If you want to erase everything and start fresh, you can do that separately through Settings (iPhone/iPad) or System Preferences (Mac) under "General" or "Erase All Content and Settings." Erasing the device does not require your iCloud password, but it will delete all local data.
If you are selling or giving away the device, signing out of iCloud first is the standard step. Erasing the device is optional and depends on whether you want the next owner to start with a blank slate or keep your apps and settings.
Frequently Asked Questions
Can I sign out of iCloud without a verification code?
No. Apple requires either your password or a verification code sent to a recovery phone number or email. If you have neither, you will need to use Apple's account recovery process at iforgot.apple.com or contact Apple Support.
Will signing out delete my photos and files?
Not automatically. When you sign out, the device asks whether to keep or delete iCloud data stored locally. You can choose to keep it. Your data in iCloud itself remains in your account and will be accessible if you sign back in later.
How long does the verification code take to arrive?
Usually within seconds. If you do not see it after a minute, check your spam folder or try requesting the code again. Make sure you chose the correct recovery phone number or email address.
What happens if I sign out but never sign back in?
Your iCloud account remains active and your data stays in it. You can sign back in from any device at any time. Signing out of one device does not affect your account or data on other devices.
Do I need to sign out before selling my iPhone?
Yes. Signing out of iCloud is the first step before selling or giving away any Apple device. After you sign out, the next owner can set up the device with their own Apple ID. If you do not sign out, the device will be locked to your account and the new owner will not be able to use it.