What deleting everything from your iPhone actually does
Deleting everything from your iPhone removes all your photos, messages, contacts, apps, and settings — but the process works differently depending on whether you want to keep your Apple ID or remove it entirely. If you sign out of your Apple ID first and then erase the device, someone who gets your phone cannot access your accounts or data. If you erase without signing out, your Apple ID remains linked to the phone, which can lock you out of using it again unless you enter your Apple ID password.
The most complete deletion happens through Settings, where you can wipe the entire device in minutes. This is the method to use if you are selling the phone, giving it away, or trading it in. A factory reset removes everything but does not physically destroy data on the storage chip — forensic tools can sometimes recover erased files — so if you are concerned about that level of security, you should not rely on a factory reset alone.
Key Takeaways
- Sign out of your Apple ID before erasing if you want the phone to be usable by someone else; erasing without signing out locks the phone to your account.
- Go to Settings > General > Transfer or Reset > Erase All Content and Settings to delete everything in one step.
- The process takes 5 to 15 minutes and requires your iPhone passcode or Apple ID password to confirm.
- A factory reset removes files from view but does not make them unrecoverable by forensic software, so do not rely on it for highly sensitive data.
- If you forget your passcode before erasing, you will need to use Find My iPhone or a computer with Finder to reset the device.
How to sign out of your Apple ID before erasing
Before you erase, sign out of your Apple ID so the phone is not locked to your account afterward. Open Settings, tap your name at the top, scroll down, and tap Sign Out. You will be asked to enter your Apple ID password — this is a security step to confirm you own the account. After you enter it, the phone will ask whether you want to keep a copy of your iCloud data on the device. Choose Keep on iPhone if you want your photos and documents to stay, or Remove from iPhone if you want them deleted along with everything else.
If you use iCloud Keychain to store passwords, you will see a warning that you are about to turn it off. Tap Turn Off to proceed. The sign-out process takes a minute or two. Once it is complete, your name no longer appears at the top of Settings, and you are ready to erase.
The step-by-step process to erase everything
Open Settings and tap General. Scroll down and tap Transfer or Reset. Tap Erase All Content and Settings. The phone will warn you that this action cannot be undone and will delete all your data. Tap Erase to confirm. You will be asked to enter your iPhone passcode. Type it in and tap Erase again.
The phone will begin erasing. You will see a progress bar and a message saying "Erasing iPhone." Do not turn off the phone or disconnect it from power during this time. The process usually takes 5 to 15 minutes depending on how much data is on the device. When it finishes, the iPhone will restart and show the setup screen, as if it just came out of the box.
What to do if you do not remember your passcode
If you have forgotten your passcode, you cannot erase the device through Settings. Instead, use Find My iPhone on another device or a computer. On another iPhone or iPad, open the Find My app, tap Devices at the bottom, select your iPhone from the list, tap Erase This Device, and confirm. On a Mac or Windows computer, go to iCloud.com, click Find My, select your iPhone, and choose Erase iPhone.
All three methods require your Apple ID password to confirm. After you enter it, the phone will erase remotely even if you are not holding it. This takes longer than erasing in person — sometimes 10 to 30 minutes — because the command has to reach the phone over the internet. Once the erase is complete, the phone will show the setup screen.
What happens after the erase is complete
Your iPhone will restart and display the Hello screen, the same one you saw when you first turned it on. From here, you can set it up as a new device, restore from a backup, or hand it to someone else to set up with their own Apple ID. If you are selling or giving away the phone, let the new owner set it up themselves — do not create an Apple ID on it, because that will lock it to your account.
If you are keeping the phone and want to restore your data, you can sign back in with your Apple ID during setup and choose to restore from an iCloud backup or from a computer backup. This will bring back your photos, messages, contacts, and apps, but not the settings you had before the erase.
Why erasing does not make data truly unrecoverable
When you erase an iPhone, the operating system marks the storage space as empty and available to be written over. The actual data remains on the storage chip until new files are written on top of it. This means someone with forensic software and physical access to the phone could potentially recover deleted files, especially if the erase happened recently and the phone has not been used much since.
If you are erasing a phone that contained highly sensitive information — financial records, medical data, or passwords — and you are concerned about forensic recovery, do not rely on a factory reset. Instead, physically destroy the phone or use a service that specializes in find data destruction. For most people erasing a phone to sell it or give it away, a standard factory reset is sufficient.
Erasing a specific app or folder instead of everything
If you only want to delete certain apps or photos rather than everything, you do not need to erase the whole phone. To delete an app, press and hold it on the home screen, tap Remove App, and tap Delete. To delete photos, open the Photos app, tap Select, choose the photos you want to remove, tap Delete, and confirm. To delete messages, open Messages, swipe left on a conversation, and tap Delete.
If you want to clear your browsing history and website data from Safari, go to Settings > Safari > Clear History and Website Data. Choose how far back to clear — the last hour, today, today and yesterday, or all time — and tap Clear History and Website Data. This removes your browsing history, cookies, and cached files but leaves your bookmarks and saved passwords intact.
Frequently Asked Questions
Will erasing my iPhone remove it from my Apple ID account?
No. Erasing the device removes the data from the phone, but the phone itself stays linked to your Apple ID unless you sign out first. If someone tries to set up the phone after the erase, they will see a screen asking for your Apple ID password. Sign out before erasing if you want the phone to be usable by someone else.
Can I undo an erase after I have started it?
No. Once you tap Erase and confirm your passcode, the process cannot be stopped. The data will be deleted. If you have a backup, you can restore from it after the erase is complete, but you cannot cancel the erase itself once it has begun.
What is the difference between erasing and factory reset?
They are the same thing on an iPhone. Erasing All Content and Settings is Apple's term for a factory reset. Both remove all data and settings and return the phone to its original state.
Do I need to back up my phone before erasing?
Only if you want to keep your data. If you are erasing because you want a completely fresh start or because you are giving the phone away, you do not need a backup. If you think you might want your photos or messages later, back up to iCloud or to a computer before you erase.
How long does it take to erase an iPhone?
Usually 5 to 15 minutes, depending on how much data is on the phone and how fast your device is. Older iPhones or phones with a lot of data may take longer. Do not turn off the phone or unplug it during the erase.