What deleting everything means and why you'd want to do it
Deleting everything on your phone means wiping all your personal data — photos, messages, contacts, apps, settings — and returning the phone to the state it was in when it left the factory. This is called a factory reset or hard reset. The phone itself stays; only the information on it disappears.
People do this for three main reasons: selling or giving away the phone to someone else, fixing a phone that has become slow or buggy, or starting completely fresh after losing access to an old account. Before you start, understand that this action cannot be undone. Once the data is gone, standard recovery is not possible. That is why the previous guide in this section — backing up your files — matters so much.
If you have not backed up your photos, messages, or other files you want to keep, stop here and do that first. Most phones let you back up to cloud storage (Google Drive, iCloud, OneDrive) or to a computer. Once that is done, a factory reset is straightforward and takes about 15 to 30 minutes.
Key Takeaways
- A factory reset erases all personal data from your phone and cannot be reversed, so back up anything you want to keep before you start.
- On Android, go to Settings > System > Reset options > Erase all data, and on iPhone, go to Settings > General > Transfer or Reset > Erase All Content and Settings.
- You will need your Google account password (Android) or Apple ID password (iPhone) to confirm the reset and prevent someone else from using the phone afterward.
- The reset process takes 15 to 30 minutes and the phone will restart several times; do not turn it off or unplug it during this time.
- After the reset completes, the phone will ask you to set it up as new or restore from a backup, giving you the chance to put back only the data you want.
How to factory reset an Android phone
On most Android phones, open Settings and scroll down to find System (on some phones it is called About phone or Device). Tap System, then look for Reset options or Reset. You should see Erase all data or Factory reset. Tap it.
The phone will warn you that all data will be deleted and ask you to confirm. It will also ask for your Google account password — the email and password you use to sign into Gmail or Google Play. This is a security step. Even after the reset, the phone will be locked to your Google account until someone enters that password, which prevents a thief or finder from using a phone they do not own. Enter your password and confirm.
The phone will begin erasing data. You will see a progress bar or spinner. The phone may restart one or more times. This is normal. Do not turn off the phone, remove the battery, or unplug it. Let the process finish completely. When it is done, the phone will restart and show you the setup screen, as if it were brand new.
How to factory reset an iPhone
On iPhone, open Settings and tap General. Scroll to the bottom and tap Transfer or Reset (on older iPhones it may say Reset). Then tap Erase All Content and Settings.
The phone will ask you to enter your Apple ID password — the password for the account you use to sign into iCloud and the App Store. This is the same security step as on Android. The phone will also ask whether you want to keep or erase your iCloud backup. If you have already backed up your data elsewhere and do not want iCloud to restore it later, choose Erase iCloud Backup. If you want to keep the backup in case you need it, choose Keep Backup.
Tap Continue and confirm your choice. The phone will begin erasing. You will see a progress bar. The phone may restart. Do not interrupt this process. When it finishes, the phone will show the setup screen.
What to do if you forgot your password
If you cannot remember your Google or Apple ID password, you will need to reset it before you can complete the factory reset. On Android, go to accounts.google.com on a computer or another device, click Sign in, enter your email, and follow the steps to reset your password. You will need access to the phone number or recovery email linked to the account. On iPhone, go to iforgot.apple.com and follow the same process.
Once you have reset your password, return to your phone and try the factory reset again. If you do not have access to the recovery phone number or email, contact Google or Apple support directly. They can verify your identity and help you regain access to your account.
Setting up your phone after the reset
After the factory reset completes, your phone will ask you to set it up. You will see options to Set up as new or Restore from backup. If you backed up your data to Google Drive (Android) or iCloud (iPhone) before the reset, you can restore it now. If you backed up to a computer or external drive, you can set up as new and then manually move files back later.
Setting up as new is often the better choice if you want a truly clean phone. You can then restore only the apps and data you actually use, rather than bringing back everything that was on the old phone. If the phone was slow or buggy, this fresh start often fixes the problem.
Selling or giving away your phone after a reset
After a factory reset, your phone is safe to sell or give away — the new owner will not see your photos, messages, or personal files. However, the phone will still be locked to your Google or Apple account until the new owner enters the account password during setup. This is intentional: it prevents theft.
Before you hand over the phone, tell the new owner that they will need to sign in with their own Google or Apple account. If they do not have one, they can create one for free. The setup process will guide them through it. If you want to remove your account from the phone before handing it over, you can do so in Settings > Accounts (Android) or Settings > [Your Name] (iPhone), but this is not necessary — the factory reset already removed all your data.
What happens if the reset gets stuck or fails
Occasionally a factory reset will stall or fail, usually because the phone ran out of battery or lost power during the process. If this happens, charge the phone fully, wait a few minutes, and try the reset again from the beginning. The phone should complete the process the second time.
If the reset fails repeatedly or the phone will not turn on, the phone may have a hardware problem. At this point, contact the phone manufacturer's support line or visit a repair shop. Do not try to force the reset multiple times, as this can damage the phone further.
Frequently Asked Questions
Will a factory reset remove viruses or malware from my phone?
Yes. A factory reset erases everything on the phone, including any malicious software. However, if the malware came from an app you downloaded, you will need to be more careful about what you install after the reset. Do not reinstall the app that caused the problem.
Can I recover my data after a factory reset?
Not through normal means. Once a factory reset completes, your data is gone and cannot be recovered by the phone itself. This is why backing up before you reset is so important. If you did not back up and need the data, a data recovery service may be able to help, but this is expensive and not always successful.
Do I need to remove my SIM card before a factory reset?
No. A factory reset does not affect your SIM card or your phone number. Your SIM card stores your phone number and carrier information, not your personal data. You can leave it in the phone during the reset.
What if I want to keep some apps but delete everything else?
A factory reset removes all apps. If you want to keep certain apps, do not do a factory reset. Instead, go to Settings and manually uninstall the apps you do not want, then clear the cache and data for the ones you keep. This is slower but gives you more control.
How long does a factory reset actually take?
Most factory resets take 15 to 30 minutes from start to finish, depending on how much data is on the phone and how fast the phone is. Older phones or phones with a lot of data may take longer. Do not interrupt the process, even if it seems to be taking a while.