Why deleting is not erasing
When you delete a file and empty the recycle bin, the computer usually marks that space as available but does not necessarily overwrite what was written there. Until new data happens to replace it, pieces of the old file can sometimes be recovered with specialist tools. The same applies to a quick format. A drive can look empty to the normal user and still contain readable traces.
That is why a computer that is about to go to a stranger needs more than a tidy-up. Documents, photos, saved passwords, browser history and tax or banking files may remain if you simply delete them. A careful wipe is the proper way to reduce that risk. It cannot be guaranteed with every device and method, but the steps below make a good result likely.
Step 1: Back up what you want to keep
Wiping is permanent. Copy anything you want to keep to another place, and open a few files from the copy to confirm they work. Remember less obvious items: saved browser bookmarks, email stored only on the computer, game saves, license keys and documents in unusual folders. The basics of backups and the notes on external drives can help you choose where to put your copies.
Step 2: Sign out and deregister
Many services link themselves to a particular device. If you leave those links in place, the buyer may find the computer locked, or you may keep access you did not intend to keep. Before erasing anything:
- Sign out of your user account on the system, and of any cloud account tied to the machine.
- Turn off any “find my device” or anti-theft feature linked to your account, since it can lock the next owner out.
- Deauthorize programs that limit the number of devices they run on, such as media, design or office software, and note your software licenses.
- Sign out of email, messaging, cloud storage and password manager apps.
- Remove the device from your account’s list of trusted devices, and review two-factor sign-in settings so the old machine is no longer trusted.
- Unpair Bluetooth devices and remove saved Wi-Fi networks if the tool allows it.
- Remove any encryption lock or firmware password you set, or keep the recovery information safe until you finish.
Doing this from the account settings of each service, as well as on the machine, is often wise, because a service may still list the device afterward.
Step 3: Erase the drive
There are several general approaches. Which one suits you depends on the computer, the drive type and how sensitive your data is.
Use the built-in reset option that removes everything. Most operating systems offer a reset that deletes files and reinstalls the system, often with a choice to clean the drive more thoroughly. This suits most home sales and giveaways. The article on factory reset versus clean reinstall explains how the options differ.
Use the drive’s own secure erase feature. Many modern drives support a built-in command that clears them at a deeper level. Solid-state drives need special care, since normal overwriting does not behave the same way as it does on a mechanical drive. Use only the maker’s official tools and instructions for this.
Rely on encryption, then reset. If drive encryption was switched on during your whole use of the computer, resetting it and discarding the key can make old data hard to read. This is a sensible extra layer, not a replacement for erasing, and it helps only if encryption was on before.
Overwrite on a mechanical hard drive. Writing over the whole disk with new data is a traditional approach for hard drives. It can take a long time, and it is not advised for solid-state drives. Use a well-regarded official or documented tool.
Physically destroy or remove the drive. For extremely sensitive data, or a failed drive that cannot be erased, you can remove the drive and keep it, or send it to a professional destruction service. If you remove the drive, say so openly to a buyer and consider that a computer with no storage is worth less.
Keep the computer plugged in during the process, and do not interrupt it.
Step 4: Reinstall a clean system, or stop at setup
After erasing, you can reinstall the operating system so the machine is ready to use. Many sellers stop at the first-run screen so the new owner enters their own details. Do not complete setup with your own account. If you reinstall, follow the planning steps in the article on a clean reinstall, and avoid entering any license keys that belong to you personally unless they transfer legally with the machine.
Step 5: Check your work
Start the computer once more and look at what you see. There should be no user accounts of yours, no saved Wi-Fi networks, no browser history and no personal files. Check the account settings online to confirm the device is gone from your lists. If something remains, repeat the relevant step.
Memory cards and external drives
Remember accessories that store data, such as memory cards, external drives and USB sticks. These need the same attention. Remove them before the sale, or wipe them properly if they go along. The article on memory cards covers how those cards are used.
When wiping is not possible
If the computer is broken and will not start, you can still remove its drive and either keep it, wipe it separately or have it destroyed. Do not hand over a nonworking machine that still contains your files. When an old machine is beyond selling, electronics recycling programs often accept it, and many will handle data on the drive responsibly, though you should not assume so without asking.
No method is perfect, but these steps make it unlikely that a new owner will see anything personal.