How to wipe and sell an old phone without giving away your data
A factory reset on a modern phone is genuinely thorough — it throws away the key that makes the storage readable. The mistakes people make are on either side of it: what they forget to move first, and the account lock they leave switched on afterwards.
Two fears keep old phones in drawers. The first is that a reset does not really erase anything and a stranger will recover the photos. The second, quieter one is the fear of doing it wrong: wiping the phone before moving the two-factor codes off it, or selling a handset that refuses to start for its new owner because it is still tied to your account.
The first fear is largely obsolete. The second is the one worth spending ten minutes on, and the order of the steps is what protects you.
On this page
The short answer
- Move everything off first. Back up, transfer your authenticator codes and your eSIM, and sign out of the accounts that count devices.
- The reset is the easy part. On an encrypted phone, erasing the key makes the data unreadable; NIST calls this cryptographic erase.
- Turn off the owner lock, or the phone is a brick to the buyer. On iPhone that means signing out of iCloud and erasing properly; on Android it means removing your Google account and screen lock before you reset.
- Erasing the phone does not erase iCloud or Google. Apple is explicit: "Your content won't delete from iCloud when you erase your device."
- Take the SIM and any memory card out, and remove the device from your account's device list afterwards.
What a factory reset actually does
Old advice — overwrite the phone with junk files, reset it three times — was written for unencrypted storage. It no longer describes what is happening.
Every current phone stores your data encrypted. Android has required file-based encryption since Android 10: "All devices launching with Android 10 and higher are required to use file-based encryption." Apple's hardware does the same on the iPhone. The consequence is that the readable version of your data never exists on the flash chips at all; what exists is ciphertext plus a key held in a secure area of the chip.
A factory reset destroys that key. The standards world has a name for this. NIST's guidelines on media sanitization define it plainly: "Cryptographic Erase (CE) leverages the encryption of target data by enabling sanitization of the target data's encryption key." The ciphertext may still be sitting in the flash, but without the key it is noise, and no amount of recovery software changes that.
Two caveats. A microSD card is separate storage and is often not encrypted: take it out. And a phone old enough to predate default encryption deserves the old-fashioned approach — reset it, refill the storage with something harmless, reset it again — or simply not to be sold.
Before you touch reset
Everything that goes wrong in this process goes wrong here, because a reset is not reversible.
- Back up, then check the backup exists. Photos, messages, and the documents inside apps that never sync. If your only copy is on the phone you are about to erase, you do not have a backup — the 3-2-1 rule applies here too.
- Move your two-factor authenticator. This is the step people skip and regret. Codes in an authenticator app do not travel with a normal backup unless you migrate them deliberately, and losing them can lock you out of email, banking and work accounts. Do this first, and confirm the codes work on the new phone.
- Transfer or delete the eSIM. A physical SIM you can simply remove; an eSIM lives in the phone and has to be moved to the new device or deleted through your operator. The eSIM guide covers how transfers work between phones and carriers.
- Unpair a watch and any other accessory paired to the handset.
- Sign out of apps that count devices — streaming services, password managers, banking apps, messaging apps with linked-device lists.
- Take out the SIM tray and the memory card.
Keep reading
Advertisement
Wiping an iPhone
Apple's own sequence for a phone you are selling, giving away or trading in is short, and the order matters. Create a backup. Unpair your Apple Watch if you have one. Sign out of iCloud, iTunes and the App Store. Then, in Settings, "tap Erase All Content and Settings". When the phone asks about the eSIM, choose the option that matches your plan — if the line is moving to another device, keep the profile; if you are finished with it, "choose the option to erase the device and the eSIM profile".
Doing it this way matters because of what the erase switches off. In Apple's words, when the device is erased, "Find My [device] and Activation Lock turn off". A phone wiped any other way — through recovery mode by someone who does not know the account password, for instance — can stay locked to you.
Wiping an Android phone
Android's equivalent trap is Factory Reset Protection. It switches on once two ordinary things are true: there is a Google account on the phone and a screen lock is set. After that, anyone who resets the device has to sign in with an account that was already on it. Google's warning is blunt: if you cannot supply those details during setup, "you won't be able to use the device at all" after the reset.
So, before resetting: remove your Google account from the phone, then remove the screen lock. Only then run the factory reset from Settings. Menu names vary by manufacturer — look for Reset, or "Erase all data (factory reset)" — but the sequence is the same on every Android phone.
The lock that strands your buyer
Both platforms have the same feature for the same good reason: a stolen phone should be worthless. Apple's Activation Lock "turns on automatically when you turn on Find My on your device", and on a modern iPhone the new owner is met with an "iPhone Locked to Owner" screen. Android's Factory Reset Protection behaves the same way.
This is the single most common reason a second-hand sale falls apart, and it is why the resets above are ordered the way they are. If you have already sold or posted the phone and only then realise it is still tied to your account, you can usually fix it remotely: sign in to your account in a browser, find the device list and remove the device from it.
After the wipe
Two pieces of tidying are easy to forget.
First, remove the handset from your account's list of devices — Apple's instructions end with exactly that, removing the old device "from your list of trusted devices". A phone you no longer own should not be a place where sign-in prompts and verification codes can appear.
Second, remember what the wipe did not touch. Apple states it directly: "Your content won't delete from iCloud when you erase your device." The same is true of Google's side. That is usually what you want — the data is waiting for your new phone — but if you were erasing the handset because you wanted a clean break from a particular account, the account is a separate job.
Finally, start the phone once after the reset. A device that boots to the welcome screen is a device you can photograph, describe honestly and hand over.
Selling it safely
A wiped phone is worth more with proof and detail: the exact model and storage size, the battery health figure the phone reports, an honest note on scratches, and a photo of the setup screen showing no account lock. Buyers on marketplaces are wary of locked handsets, and being able to show the phone is clean is the fastest way to a sale.
For meeting a buyer, ordinary caution applies: a public place, and a phone that starts up in front of them. If the handset is too old or too damaged to sell, it is still worth something as a trade-in credit, and every seller of electronics in the EU and the UK has to take one back for recycling. What it should not be is the device in the drawer that nobody has erased at all.
Sources
- Apple Support — What to do before you sell, give away or trade in your iPhone or iPad
- Apple Support — Activation Lock for iPhone and iPad
- Apple Support — How to remove Activation Lock
- Android Help — Help prevent others from using your device without permission (Factory Reset Protection)
- Android Open Source Project — File-based encryption
- NIST SP 800-88 Rev. 1 — Guidelines for Media Sanitization (cryptographic erase)