A factory reset wipes your apps, photos, and messages, but not your Apple ID or iCloud backups
When you perform a factory reset on an iPhone — officially called "Erase All Content and Settings" — it removes almost everything you can see: your photos, videos, text messages, email accounts, installed apps, and your home screen layout. The phone returns to the state it was in when it left the factory, with only Apple's built-in apps remaining.
But the reset does not erase your Apple ID account itself. If you set up the phone with an Apple ID, that ID remains linked to the device unless you specifically sign out of it before erasing. This is a security feature called set up Lock — it prevents someone who steals your phone from wiping it and selling it as new. It also means you can sign back in with the same Apple ID after the reset and restore your data from iCloud.
Your data on Apple's servers — iCloud backups, photos in iCloud Photo Library, notes, contacts, and calendar events — stays in your iCloud account. The reset only removes the local copies on the phone itself.
Key Takeaways
- A factory reset deletes all apps, photos, messages, and settings stored on the phone, but leaves your Apple ID account active on the device.
- Your data in iCloud — backups, photos, contacts, and notes — remains in your account and can be restored after the reset.
- If you want to completely remove your Apple ID from the phone before selling or giving it away, you must sign out of it in Settings before erasing.
- Signing out of iCloud before the reset removes your data from the phone but keeps it safe in your iCloud account for later use.
- A reset does not remove set up lock, so the phone will still ask for your Apple ID password when it starts up again.
What gets deleted during a factory reset
When you erase the iPhone, these items disappear from the device: all installed apps except Apple's defaults (Mail, Messages, Safari, Photos, etc.), all photos and videos stored locally on the phone, all text messages and iMessage conversations, all email accounts and their cached messages, all contacts stored on the phone, all calendar events, all notes, all reminders, all voice memos, all health and fitness data, and all custom settings like wallpapers, home screen arrangement, and notification preferences.
Third-party apps like Instagram, Spotify, banking apps, and games are completely removed. If those apps stored data only on your phone — like offline playlists or game progress — that data is gone unless you backed it up separately. Some apps sync their data to their own servers (like Gmail or Dropbox), so you can sign back in and retrieve it. Others do not.
Your phone's storage is also wiped clean. The reset does not leave recoverable fragments of deleted files — it overwrites the storage space, making old data unrecoverable through standard recovery tools.
What stays on the phone after a reset
Your Apple ID remains linked to the phone. When you turn it back on after the reset, it will ask you to sign in with the Apple ID that was originally set up on it. This is set up Lock, and it cannot be bypassed or removed by a factory reset alone.
If you want to remove the Apple ID from the phone entirely — for example, before giving it to someone else — you must sign out of it manually before you erase. Go to Settings > [Your Name] > Sign Out, enter your Apple ID password, and choose what to do with iCloud data (keep it or delete it from the phone). Then perform the factory reset. After that, the phone will not ask for an Apple ID when it starts up.
Your iCloud account and everything in it remain untouched. Backups, photos, documents, contacts, calendar events, notes, and any other data synced to iCloud stay in your account. You can restore them to this phone or any other iPhone by signing back in with the same Apple ID.
How to reset your iPhone and keep your data safe
Before you erase, decide what you want to happen to your iCloud data. If you want to keep it, you do not need to do anything — just make sure you are signed into iCloud before you erase. After the reset, sign back in and restore from your iCloud backup.
To perform the reset, go to Settings > General > Transfer or Reset > Erase All Content and Settings. The phone will ask you to confirm and may ask for your Apple ID password (this is another security feature). The process takes a few minutes, and the phone will restart when it is done.
If you are giving the phone to someone else, sign out of your Apple ID before erasing (Settings > [Your Name] > Sign Out). This removes set up Lock and lets the new owner set up the phone with their own Apple ID. If you do not sign out first, they will see a screen asking for your Apple ID credentials when they turn on the phone, and they will not be able to proceed without it.
If you are selling the phone, sign out of Apple ID, sign out of iCloud, and then erase. This removes all your personal data and set up Lock, leaving the phone ready for the new owner to set up from scratch.
The difference between signing out and erasing
Signing out of iCloud removes your data from the phone but keeps it in your iCloud account. Your photos, backups, contacts, and notes stay on Apple's servers. Signing out of Apple ID removes set up Lock from the phone.
Erasing the phone deletes everything stored locally on the device — apps, photos, messages, settings — but does not remove your Apple ID or iCloud account. If you erase without signing out first, the phone will still be locked to your Apple ID when it restarts.
For maximum privacy before giving away or selling your phone, do both: sign out of Apple ID (which also signs you out of iCloud), then erase. This removes all your personal data from the phone and removes the Apple ID lock, leaving a clean device for the next owner.
What happens to data stored in third-party apps
Apps like Gmail, Outlook, Dropbox, Google Photos, and OneDrive store data on their own servers, not on your phone. When you reset the iPhone, the app is deleted, but your data in that service remains. Sign back in after the reset and your data is still there.
Apps like games, note-taking apps, and fitness trackers that store data only locally on your phone will lose that data when you erase. Some of these apps offer cloud backup or sync features — check the app's settings before you reset to see if your data is being backed up anywhere.
If you want to preserve data from a third-party app before resetting, check whether the app has a backup or export feature. Some apps let you export your data as a file, which you can then save to iCloud Drive, email to yourself, or store elsewhere.
Recovering data after a reset
If you reset your iPhone and then signed back in with your Apple ID, you can restore your data from an iCloud backup. During the setup process after the reset, you will see an option to "Restore from iCloud Backup." Choose the backup you want (usually the most recent one) and the phone will read your photos, apps, messages, contacts, and other data.
Restoration takes time depending on how much data you have and your internet speed. Keep the phone plugged in and connected to Wi-Fi during the process. Do not interrupt it or the restoration may fail partway through.
If you do not have an iCloud backup, you cannot recover data that was only stored on the phone. This is why backing up regularly — either to iCloud or to a computer using Finder — is important if you want to protect your data.
Frequently Asked Questions
Will a factory reset remove my Apple ID from the phone?
No. A factory reset leaves your Apple ID linked to the phone through set up Lock. When the phone restarts, it will ask for your Apple ID password. To remove your Apple ID entirely, you must sign out of it in Settings before you erase the phone.
Can I recover my photos and messages after a reset?
Only if you backed them up to iCloud before the reset. After you reset and sign back in with your Apple ID, you can restore from an iCloud backup and your photos and messages will return. If you did not back them up, they are gone.
What if I reset my iPhone and forgot my Apple ID password?
You will need to recover your Apple ID password to proceed. Go to iforgot.apple.com on another device, enter your Apple ID email, and follow the recovery steps. Apple will send a verification code to a trusted phone number or email address associated with your account.
Does a reset delete my iCloud backup?
No. Your iCloud backup stays in your account even after you reset the phone. You can restore from it on this phone or on any other iPhone by signing in with the same Apple ID.
Can someone recover my data from a reset iPhone?
No. A factory reset overwrites your data on the phone, making it unrecoverable through standard tools. However, if set up Lock is still active, the person with the phone cannot use it without your Apple ID password.