Selling your old phone, or stuck with one that has slowed down to a crawl or picked up something suspicious? A factory reset, also called wiping the phone, is the usual fix. It deletes everything and takes the phone back to how it was when you first opened the box.
The catch is that it can't be undone, and a few small mistakes can cost you your photos or leave the phone asking for an account you can't log in to. I'm Nadeem, a mobile technician, and in this guide I'll walk you through the safe way to do it, step by step.

Before you wipe anything
Take five minutes for these three checks. Skipping them is where most problems start.
1. Back up what you want to keep
Once the phone is wiped, photos, videos, contacts and messages are gone. Here is what to save first:
- Photos and videos: back them up with Google Photos, or copy them to a laptop or SD card.
- Contacts: open Settings, go to Accounts, select your Google account and make sure Contacts sync is on.
- WhatsApp chats: open WhatsApp, go to Settings, then Chats, then Chat backup, and run a backup. Your chats do not come back on their own after a reset.
2. Charge the battery
A reset can take several minutes. If the battery dies halfway, the phone may not start properly afterwards and might need a software repair. I'd keep it above 70 percent to be safe.
3. Remove your accounts first
Android has a protection called Factory Reset Protection, or FRP. If a Google account is still on the phone when you reset it, the phone will ask for that account's email and password when you set it up again. Forget the password and the phone stays locked.
So before you reset, open Settings, go to Accounts (on some phones it's called Passwords and accounts), select your Google account and tap Remove account. If you have a Samsung phone, also sign out of your Samsung account. This matters most if you are selling or giving the phone away, so the next person can set it up without trouble.
Method 1: Reset from Settings (the easy way)
Use this if the phone works and you can open the screen. The menu names change a little between brands, but the steps are very similar.
- Open Settings.
- Go to System. On Samsung phones it is called General management.
- Tap Reset options (on Samsung, just Reset).
- Choose Erase all data (factory reset). On Samsung this is Factory data reset.
- Read the warning, then tap Reset phone or Erase everything.
- Enter your PIN, pattern or password if it asks.
- Wait while the phone restarts. It can take a few minutes, and the screen may stay on the Android logo for a while. Don't press any buttons.
When you see the welcome screen, the wipe is done.
Method 2: Hard reset from Recovery Mode
This is for a phone that won't start properly, or where you can't get past the lock screen. Only do this on a phone that belongs to you.
Switch the phone off completely, then hold the button combination that opens Recovery Mode. It is different on different phones, so please check yours:
- Many phones, including a lot of Samsung and Xiaomi models, use Volume Up and Power together.
- On Pixel phones, hold Volume Down and Power to open the bootloader, then use the volume keys to choose Recovery mode.
- Some newer Samsung models ask you to connect the phone to a computer with a USB cable while you hold the buttons.
If you aren't sure, search for your phone model plus "recovery mode" before you start.
Once you see the Recovery menu, the touch screen usually won't work. Use the volume keys to move up and down, and the Power button to select.
- Move to Wipe data / Factory reset and press Power.
- Confirm with Factory data reset.
- When it says the wipe is complete, choose Reboot system now.
Important: a hard reset does not remove the Google lock. If an account was on the phone, it will still ask for that account after the reset. So this method clears the phone's data, but it is not a way around the account.
Method 3: Erase a lost phone remotely
If your phone is lost or stolen and it holds personal photos or banking apps, you can erase it from another device. Google's tool for this is called Find Hub (it used to be known as Find My Device).
- On a computer or another phone, open Find Hub (android.com/find) and sign in with the same Google account that is on the lost phone.
- Select the lost phone.
- If you still hope to get it back, try Play sound or Mark as lost first.
- If recovery looks unlikely, choose Factory reset for that device.
Two things to remember. The erase only works if Find Hub was turned on, and if the phone is offline the command can wait until it connects to the internet again. And once the phone is erased, you can no longer see its location in Find Hub.
After the reset
The phone will start like a new one. Choose your language, connect to Wi-Fi and sign in with your Google account. When it offers to restore from a backup, say yes to bring back your contacts and apps, then reinstall only the apps you actually use.
A clean start often makes a phone feel faster. If it is still slow after that, the cause is usually hardware, such as a worn-out battery or full storage, and not the software.
Quick answers
Will a factory reset remove a virus?
It removes most problem apps, because it clears everything you installed. After the reset, install apps only from the Play Store, and don't restore anything you don't recognise.
Does it erase my SD card?
Usually not, but I'd take the SD card out before resetting, just to be safe.
Can I undo a factory reset?
No. That is why the backup comes first.
I'm Nadeem Gulaab, a mobile technician with 8+ years of repair experience, and I write these guides so everyday phone problems are easier to sort out.