Before you hand over your old computer to a buyer, you need to make sure your personal data is completely unrecoverable. This guide walks you through the essential steps to wipe your drives, sign out of accounts, and physically secure your hardware—so your identity stays yours.
What You’ll Need
- External backup drive or cloud storage (for files you want to keep)
- Your computer’s admin password (or ability to reset it)
- For Windows: a USB drive with at least 8GB (for a clean install)
- For macOS: your Apple ID password and a spare USB drive (optional)
- For Linux: a live USB or a secure-erase tool (like DBAN or shred)
Step-by-Step
- Back up your important files. Copy documents, photos, and any other data you want to keep to an external drive or cloud service. Double-check that the backup is readable before proceeding.
- Deauthorize and sign out of all accounts. Log out of your email, social media, banking, and any other web accounts. For media apps (iTunes, Spotify, etc.), deauthorize this computer. On Windows, go to Settings > Accounts > Other users and remove any accounts you don’t need. On macOS, go to System Settings > Apple ID and sign out.
- Unlink your computer from services. For Windows, go to Settings > Accounts > Your info and sign out of Microsoft. For macOS, go to System Settings > Apple ID and click Sign Out. Also, remove the device from services like Google, Dropbox, or Steam.
- Encrypt your drive (if not already). This is a safety net—even if data remains, it’s unreadable without the key. On Windows, use BitLocker (Windows Pro) or Device Encryption (Windows Home). On macOS, enable FileVault. On Linux, use LUKS. If you’re going to wipe the drive anyway, you can skip this, but it’s a good habit.
- Securely erase the hard drive. This is the most critical step. Simply deleting files is not enough—data can be recovered with free tools.
- Windows 10/11: Go to Settings > Update & Security > Recovery > Reset this PC. Choose “Remove everything,” then “Change settings” and turn on “Clean data?” (or “Clean the drive”). This will overwrite the drive with zeros, making recovery very difficult.
- macOS: Restart and hold Command+R to enter Recovery Mode. Open Disk Utility, select your startup disk, and click Erase. Choose a format (APFS or Mac OS Extended), then click Security Options and drag the slider to the right (most secure). This writes over the drive multiple times.
- Linux: Use a tool like
shred(e.g.,sudo shred -vfz /dev/sda) or DBAN. Be careful to target the correct drive. - SSD (Solid State Drive): Use the manufacturer’s secure erase tool if available, or use the “Reset this PC” clean option. SSDs handle overwriting differently, but a full encryption + reset is usually sufficient.
- Reinstall the operating system (optional but recommended). After wiping, install a fresh copy of Windows, macOS, or Linux. This gives the buyer a clean, working system and ensures no leftover personal files. For Windows, use the Media Creation Tool to make a USB installer. For macOS, use Recovery Mode to reinstall.
- Remove any extra storage devices. If you have a secondary hard drive or an SD card, remove them. Wipe them separately or keep them.
- Check for hidden data. Look through folders like Documents, Desktop, Downloads, and any recovery partitions. Also check the browser’s saved passwords and autofill data—these are often overlooked. After a clean install, this is less of a concern.
- Physically secure the drive (if you’re not selling the computer whole). If you’re selling just the computer, you might want to remove the hard drive and keep it, or destroy it. If you’re selling the drive, you can physically destroy it by drilling holes through the platters (for HDDs) or crushing the chips (for SSDs). This is the only 100% guarantee.
- Do a final check. Boot the computer from the fresh OS and verify there are no personal files, no logged-in accounts, and no saved passwords. Then you’re ready to sell.
Common Mistakes
- Just deleting files or formatting. This leaves recoverable data. You must overwrite the drive.
- Forgetting to sign out of accounts. The buyer could access your email or social media if you leave them logged in.
- Ignoring the browser’s saved passwords. Even if you log out of websites, your browser may have saved credentials that can be extracted.
- Not backing up before wiping. You’ll lose everything you wanted to keep.
- Using the wrong drive. When using command-line tools like
shred, you could wipe the wrong disk. Always double-check the device letter. - Skipping the clean install. A wiped drive with no OS is fine, but a clean install makes the computer more sellable and ensures no hidden data.
Tips
- Use encryption from the start. If you had FileVault or BitLocker enabled, even a simple format makes data unrecoverable without the key.
- For SSDs, use the manufacturer’s secure erase tool. It’s faster and more reliable than overwriting.
- Keep the original OS installation media. It makes reinstalling easier.
- Consider selling the computer without a hard drive. Some buyers are fine with that, and it eliminates all risk.
- Check for data on other partitions. Some computers have a recovery partition that may contain personal files if you’ve used it.
- Be cautious with cloud-synced folders. If you use OneDrive or iCloud, files might be re-downloaded after a fresh install if you sign in with the same account. Don’t sign in until you’ve sold it.
Troubleshooting
- I forgot my admin password. You can reset it via recovery mode (macOS) or a password reset disk (Windows). If you can’t, you might need to wipe the drive using a bootable USB with a tool like DBAN.
- The “Clean data” option is grayed out. This happens on some Windows installations. You can use a third-party tool like DBAN or CCleaner’s Drive Wiper instead.
- The reset fails partway through. Restart and try again. If it keeps failing, boot from a USB installer and use Diskpart to clean the drive, then install fresh.
- I can’t sign out of my Apple ID. If you’re not connected to the internet, sign out might fail. Go to System Settings > Apple ID, and click Sign Out. If it still fails, you may need to erase the Mac in Recovery Mode, which will remove the account.
- I’m not sure if the drive is actually wiped. Use a data recovery tool like Recuva (Windows) or PhotoRec to scan the drive. If it finds nothing, you’re good. If it finds files, you need to do a more thorough wipe.
- The computer won’t boot after wiping. This is normal if you didn’t reinstall an OS. Use a USB installer to reinstall.
Frequently Asked Questions
Is a factory reset enough to protect my data?
Not always. A factory reset on Windows may not overwrite the entire drive, especially if you choose “Remove my files” instead of “Clean the drive.” For maximum safety, use the “Clean data” option or a third-party wipe tool.
What’s the difference between a quick format and a full format?
A quick format only removes the file system index, leaving the actual data on the disk. A full format (or a wipe) overwrites the disk with zeros, making data unrecoverable. Always choose the full format or a dedicated wipe tool.
Can I just remove the hard drive and sell the computer without it?
Yes, that’s the most secure option. The buyer can install their own drive. Just make sure you keep the drive secure or destroy it if it contains sensitive data.
Do I need to worry about SSDs differently?
Yes. SSDs use wear leveling, so overwriting data is more complex. The best approach is to use the manufacturer’s secure erase tool or rely on full-disk encryption (which you should have enabled before). A simple format may leave data recoverable.
What about the data on my phone or tablet that’s linked to the computer?
That’s separate. Make sure to back up and wipe your phone/tablet separately if you’re selling those too. But for the computer, just ensure you sign out of all services.
Should I remove the RAM or other components?
No, RAM doesn’t store persistent data. You only need to worry about storage devices like HDDs, SSDs, and SD cards.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Change Window Border Width in Windows
- Enable iTunes Notification Center Widget on Mac
- Windows 10 Activation Error 0xc004c003: Fixes
- Modify Web Captures with JavaScript: A How-To
- How to Live Stream Using the Twitch Mobile App
- How to Change GPS Location on Android