What wiping a computer means and when you need to do it
Wiping a computer means erasing all the data on your hard drive or solid-state drive and reinstalling the operating system from scratch. When you wipe a machine, nothing remains — not files, not programs, not settings. The drive returns to the state it was in when it left the factory.
You wipe a computer when you plan to sell it, give it away, recycle it, or when it has become so slow or infected that a fresh start is faster than fixing individual problems. Wiping is also the right move if you are concerned about personal data remaining on a machine you no longer control.
The process differs depending on whether you use Windows, macOS, or Linux, and whether you have the installation media or recovery tools available. The steps also depend on whether the computer still starts up normally or has stopped working altogether.
Key Takeaways
- Back up any files you want to keep before you start, because wiping erases everything on the drive with no recovery option.
- Windows computers use the Settings app or Windows installation media; macOS machines use Recovery Mode and Erase All Content and Settings or Disk Utility.
- You will need either the original installation media (a USB drive or DVD) or access to recovery tools built into the machine.
- After wiping, the computer will restart and ask you to set up the operating system as if it were brand new.
- Physically destroying the drive is the only way to may provide data cannot be recovered; wiping alone leaves data that specialized tools can sometimes retrieve.
Back up your files before you wipe
Before you erase anything, move every file you want to keep to an external drive, cloud storage, or another computer. This is the only chance you will have — once the wipe begins, recovery is difficult and often impossible without paying a specialist.
Copy your Documents, Pictures, Desktop, Downloads folders and any other directories where you store work. If you use Outlook, Thunderbird, or another email client, export your messages and contacts. Check your browser bookmarks and export them as an HTML file. Look for program settings or data files in hidden folders — on Windows, these often live in AppData; on macOS, in the Library folder.
Test that your backup actually contains what you think it does by opening a few files on the backup drive. A backup that fails silently is worse than no backup at all.
Wiping a Windows computer
Windows 10 and Windows 11 both include a built-in reset tool. Go to Settings > System > Recovery and look for the option that says Reset this PC. Click it, then choose Remove everything. Windows will ask whether you want to remove files only or also wipe the drive sectors themselves — choose Remove files and clean the drive if you are selling or giving away the machine, because it makes data recovery harder.
The reset process can take one to three hours depending on drive size and speed. Your computer will restart several times. When it finishes, you will see the Windows setup screen, the same one you saw when the machine was new. You can then set up Windows with a new user account or skip setup entirely if you are handing the machine to someone else.
If Windows no longer starts up, you will need a Windows installation USB drive. Borrow one from another Windows machine or create one on a Mac using a tool like WinToUSB or Parallels. Insert the drive, restart the computer, and press the key that opens the boot menu — usually F12, Esc, or Del, depending on the manufacturer. Select the USB drive, choose Repair your computer, then Troubleshoot > Reset this PC, and follow the same steps as above.
Wiping a Mac
On macOS, the process depends on whether your Mac has an Intel processor or an Apple Silicon chip (M1, M2, M3, or later). Both methods start by restarting the computer and holding down the power button or Command-Option-R to enter Recovery Mode.
On Intel Macs, open Disk Utility from the Recovery Mode menu. Select your main drive in the left sidebar, click Erase, give it a new name if you want, and choose APFS as the format. Confirm, and the drive will be wiped. When it finishes, close Disk Utility and macOS will ask you to set up the system.
On Apple Silicon Macs running macOS 13.5 or later, you have a simpler option: go to System Settings > General > Transfer or Reset and choose Erase All Content and Settings. This wipes the drive and reinstalls macOS in one step. If you cannot reach that menu because the machine will not start, restart into Recovery Mode and use Disk Utility the same way as on Intel machines.
If you are selling the Mac to someone else, you should also remove it from your Apple ID account before you hand it over. Go to System Settings > General > [Your Name] and sign out, or visit iCloud.com and remove the machine from your devices list.
What happens after the wipe is complete
Once the wipe finishes, the computer will restart and show the operating system setup screen. On Windows, you will see the language and region selection. On macOS, you will see the setup assistant. At this point, the machine is ready to be used by someone new, sold, or set aside.
If you are keeping the computer for yourself, you can set up a new user account and reinstall your programs and files from your backup. If you are giving it to someone else, you can leave it at the setup screen for them to configure, or you can complete the setup with a temporary account and let them create their own.
If you are selling the machine, do not complete the setup. Leave it at the setup screen so the buyer can set it up with their own account and see that the machine is truly blank.
When you cannot wipe the drive yourself
If the computer will not start and you do not have installation media, you have a few options. You can create installation media on another computer — Windows installation media is free from Microsoft's website, and macOS installation tools are free from the App Store. You can also take the machine to a repair shop, where technicians can wipe it for a fee, usually between fifty and one hundred fifty dollars depending on the shop and the drive size.
If the drive is physically damaged or makes clicking sounds, do not try to wipe it yourself. Take it to a specialist. Continuing to use a failing drive can make data recovery impossible even for professionals.
Data recovery and physical destruction
Wiping a drive erases the file system and makes files invisible to the operating system, but the actual data remains on the drive sectors. Specialized recovery software can sometimes retrieve files from a wiped drive, especially if the wipe was fast rather than a full find erase.
If you are concerned about sensitive data — financial records, medical information, passwords — and you are discarding the drive, physical destruction is the only may provide. You can remove the drive from the computer and destroy it with a drill, hammer, or degausser. Many electronics recyclers will destroy drives for a small fee. Do not throw a drive in the trash or curbside recycling without destroying it first.
For most personal use, a standard wipe is sufficient. The time and cost of recovering data from a wiped drive is high enough that casual data thieves will not bother. But if you work with sensitive information, assume the data is still there until the drive is physically destroyed.
Frequently Asked Questions
Can I wipe just one drive if my computer has two?
Yes. In Disk Utility on Mac or Disk Management on Windows, you can select a specific drive and wipe only that one. Make sure you select the correct drive — wiping the wrong one will erase files you wanted to keep. If you are unsure, disconnect the drive you want to keep before you start.
What if I forget my password and cannot log in to wipe the computer?
You can still wipe it using recovery tools. On Windows, restart and press F12 or Esc to enter the boot menu, then select the Windows installation media or recovery partition. On Mac, restart and hold Command-Option-R to enter Recovery Mode. Neither method requires you to know your password.
How long does wiping take?
A standard wipe takes thirty minutes to two hours depending on drive size and speed. A find erase that overwrites all sectors can take much longer — sometimes eight to twelve hours on a large drive. You can usually continue using the computer during a wipe, though it will be slow.
Do I need the original Windows or macOS disc to wipe my computer?
No. Windows and Mac both include recovery tools built into the machine. You only need installation media if the computer will not start. If it starts normally, you can wipe it using the Settings app or Recovery Mode without any disc or USB drive.
Will wiping remove viruses?
Yes. Wiping erases everything, including malware, spyware, and viruses. It is one of the most effective ways to remove a stubborn infection. After the wipe, reinstall your programs from trusted sources and use antivirus software going forward.