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.

Illustration of a phone whose key breaks apart into fragments, beside a clean second device

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.

The short answer

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.

Why a reset works on an encrypted phone Your photos, messages and files are stored only as ciphertext, with the key kept in the phone's secure hardware. A factory reset deletes the key. What is left on the flash storage is unreadable data with no key to open it. BEFORE AND AFTER THE RESET Before Encrypted data on the flash chips The key in secure hardware → After Same data, now unreadable noise Key deleted Nothing to open it
This is why overwriting a phone by filling it with junk files is unnecessary work on any handset from the last several years.

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.

  1. 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.
  2. 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.
  3. 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.
  4. Unpair a watch and any other accessory paired to the handset.
  5. Sign out of apps that count devices — streaming services, password managers, banking apps, messaging apps with linked-device lists.
  6. Take out the SIM tray and the memory card.

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.

The order of steps on iPhone and on Android On iPhone: back up, move your authenticator codes and eSIM, unpair a watch, sign out of iCloud, then Erase All Content and Settings, then remove the device from your account list. On Android: back up, move your authenticator codes and eSIM, remove your Google account, remove the screen lock, then run the factory reset, then remove the device from your account list. SAME IDEA, TWO SEQUENCES iPhone Android 1 · Back up, check it 2 · Move codes + eSIM 3 · Unpair the watch 4 · Sign out of iCloud 5 · Erase all content 6 · Remove from account 1 · Back up, check it 2 · Move codes + eSIM 3 · Remove Google account 4 · Remove screen lock 5 · Factory reset 6 · Remove from account Shaded steps are the ones that unlock the phone for its next owner.
Skipping a shaded step is what produces a phone the buyer cannot set up.

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

Share this guide X WhatsApp LinkedIn Email