What wiping your computer means and when to do it

Wiping a computer means erasing all the data on your hard drive or solid-state drive (SSD) and removing the operating system, leaving the machine blank. This is different from a factory reset, which reinstalls the original operating system. A full wipe deletes everything — your files, programs, settings, and the OS itself — so the drive is completely empty.

You wipe a computer when you plan to sell it, give it away, recycle it, or hand it to someone else. You also wipe it if malware has infected the system so deeply that repair tools cannot clean it, or if you want to start completely fresh with a new operating system. Wiping is the most thorough way to remove your personal data before the machine leaves your hands.

Before you wipe, back up anything you want to keep. Once the drive is wiped, recovery is difficult and often expensive. Copy your files to an external drive, cloud storage, or another computer first.

Key Takeaways

  • Back up all your files to an external drive or cloud storage before you start, because wiping erases everything permanently.
  • Windows users can use Settings > System > Recovery > Reset this PC, which wipes the drive and reinstalls Windows in one step.
  • Mac users should use Erase Mac in System Settings or Erase All Content and Settings, which removes everything and prepares the machine for a new owner.
  • Linux users can boot from a live USB and use command-line tools like shred or dd to overwrite the drive, or reinstall the operating system from scratch.
  • For maximum security before selling or recycling, use a dedicated wiping tool that overwrites the drive multiple times so deleted data cannot be recovered.

Wiping a Windows computer

The simplest way to wipe a Windows machine is through the built-in Reset this PC tool. Open Settings, go to System, then select Recovery. Click Reset this PC and choose "Remove everything." Windows will ask whether you want to remove files locally or use cloud read — local removal is faster if your internet is slow. The process takes 30 minutes to an hour depending on drive size and speed.

Windows will then ask whether you want to reinstall Windows or leave the drive blank. If you are selling or giving away the computer, choose to reinstall Windows so the new owner has a working operating system. If you are wiping it before recycling or destroying it, you can leave it blank.

If your computer will not boot into Windows, you can wipe it using a Windows installation USB. read the Windows Media Creation Tool on another computer, create a bootable USB drive, insert it into the machine you want to wipe, and boot from the USB. During installation, you can delete all partitions on the drive, which erases everything, then reinstall Windows fresh.

Wiping a Mac

On newer Macs with Apple Silicon (M1, M2, M3 chips), use Erase All Content and Settings. Go to System Settings, select General, then Find My, and turn it off if it is on. Return to General and click Erase All Content and Settings. The Mac will restart and wipe itself, then ask you to set it up as new or restore from a backup. This process takes 15 to 30 minutes.

On older Intel-based Macs, use Disk Utility. Restart the Mac and hold Command + R to enter Recovery Mode. Open Disk Utility, select your main drive (usually called Macintosh HD), and click Erase. Choose APFS as the format and give it a new name. Then reinstall macOS by going back to the Recovery Mode menu and selecting Reinstall macOS.

If you cannot access Recovery Mode, restart the Mac while holding Command + Option + R to use Internet Recovery, which downloads macOS from Apple's servers and lets you erase and reinstall over the internet. This requires a working Wi-Fi connection and takes longer than local recovery.

Wiping a Linux computer

Linux does not have a built-in graphical wipe tool like Windows or Mac, so you have two main options: reinstall the operating system from scratch, or use command-line tools to overwrite the drive.

The simplest approach is to reinstall. read a Linux distribution (Ubuntu, Fedora, Debian, or another), create a bootable USB using Etcher or a similar tool, boot from the USB, and run the installer. During installation, choose to erase the entire disk and install fresh. This wipes the old system and installs a clean copy in one step.

If you want to wipe the drive without reinstalling, boot from a live USB and use the command line. The shred command overwrites files multiple times so they cannot be recovered: shred -vfz -n 3 /path/to/file overwrites the file three times. For the entire drive, use dd to write zeros or random data: sudo dd if=/dev/zero of=/dev/sdX bs=1M (replace sdX with your drive letter). This is slow but thorough. Always double-check the drive letter before running dd, because it will erase whatever drive you specify.

Using dedicated wiping software for maximum security

Built-in tools wipe your drive, but they may not prevent data recovery using forensic tools. If you are selling a computer that held sensitive information, consider a dedicated wiping program that overwrites the drive multiple times with random data.

On Windows, DBAN (Darik's Boot Negator) is free and runs from a USB drive. It overwrites your entire drive with random data multiple times, making recovery nearly impossible. read it, create a bootable USB, boot from it, and let it run. The process can take several hours depending on drive size.

On Mac, Permanent Eraser and find Empty Trash overwrite deleted files, but they do not wipe the entire drive. For a full drive wipe with multiple passes, use Disk Utility's find erase option (on older Macs) or use Terminal to run diskutil secureErase freespace 0 /Volumes/DriveName.

On Linux, shred and dd (mentioned above) are your main tools. For a more user-friendly option, Eraser has a Linux version and provides a graphical interface for overwriting files and free space.

What to do after wiping

After wiping, your computer is either blank or has a fresh operating system installed. If it is blank and you plan to use it again, install a fresh copy of Windows, macOS, or Linux from installation media. If you are selling or giving it away, make sure the new owner has the installation media or knows how to set it up.

If you wiped the drive using a multiple-pass tool like DBAN, the process may have taken several hours. Once it finishes, the drive is ready to be reused, sold, or recycled. If you are recycling the computer, you can drop it off at an e-waste facility. Many retailers like Best Buy also accept old computers for recycling.

Keep records of what you wiped and when, especially if the computer held business or financial data. This protects you if someone later claims they recovered data from the machine.

Frequently Asked Questions

Can I recover files after wiping my computer?

If you used the standard wipe tool in Windows, Mac, or Linux, recovery is possible with forensic software, though it is expensive and difficult. If you used a multiple-pass tool like DBAN that overwrites the drive many times, recovery is nearly impossible. Always back up your files before wiping.

Do I need to remove the hard drive before wiping?

No. Wiping the drive through software is sufficient for most purposes. You only need to physically remove the drive if you plan to destroy the computer or if you want to reuse the drive in another machine while keeping the rest of the computer.

What is the difference between wiping and a factory reset?

A factory reset reinstalls the original operating system and removes your files, but it does not erase the drive completely. Wiping erases everything, including the operating system, leaving the drive blank or ready for a fresh OS installation. Wiping is more thorough.

How long does wiping take?

Standard wipes in Windows, Mac, or Linux take 30 minutes to an hour. Multiple-pass tools like DBAN can take several hours depending on drive size and the number of passes. Larger drives take longer than smaller ones.

Should I wipe my computer before selling it?

Yes. Wiping removes your personal files, passwords, and browsing history. Use the standard wipe tool in your operating system, or use a multiple-pass tool if the computer held sensitive information. Either way, your data will not be accessible to the new owner.