What wiping a computer means and why it matters before you sell
Wiping a computer means removing all your personal files, accounts, and settings so completely that they cannot be recovered by the person who buys it. This is different from straightforward deleting files or emptying the trash — deleted files stay on the hard drive in a form that recovery software can still read. A proper wipe overwrites that space with random data, making the old files unrecoverable.
Before you sell a computer, wiping it protects your financial information, passwords, email accounts, photos, and any other data you stored on it. A buyer with basic technical knowledge or inexpensive recovery tools can pull deleted files off an unwiped drive. Wiping also returns the computer to a blank state so the new owner can set it up fresh with their own accounts and settings.
Key Takeaways
- Back up any files you want to keep before you wipe the computer, because wiping destroys all data on the drive.
- Windows computers use the Reset this PC tool (built into Windows 10 and 11) to wipe the drive and reinstall the operating system in one process.
- Mac computers use Erase All Content and Settings (on newer Macs with Apple Silicon) or Erase and Reinstall macOS (on Intel Macs) from Recovery Mode.
- Linux computers require booting from a live USB and using command-line tools like shred or dd to overwrite the drive.
- After wiping, the computer should boot to a setup screen where the new owner can create their own account and begin using it.
Back up your files before you do anything else
Wiping removes everything on your computer permanently. Before you start, copy any files you want to keep to an external drive, cloud storage, or another computer. This includes documents, photos, videos, music, and any other personal files.
The fastest way is to connect an external hard drive and drag your Documents, Pictures, Downloads, and Desktop folders onto it. If you use cloud storage like Google Drive, OneDrive, or iCloud, make sure your important files have synced to the cloud and that you have downloaded a copy to a safe location. Check your email client (Outlook, Gmail, Apple Mail) to see if you need to export any messages you want to keep — wiping the computer will not affect email stored on the provider's servers, but local copies will be deleted.
Once you have backed up everything, disconnect the external drive and set it aside. Do not plug it back in until after the wipe is complete.
Wipe a Windows computer using Reset this PC
Windows 10 and Windows 11 include a built-in tool called Reset this PC that wipes the drive and reinstalls Windows in one step. This is the simplest method for most Windows users.
Open Settings by pressing the Windows key and typing "settings," then click the Settings app. Go to System, then scroll down and click Recovery. Under Reset this PC, click the Reset PC button. Windows will ask whether you want to keep your files or remove everything — choose Remove everything. On the next screen, choose Remove files and clean the drive. This option overwrites the deleted data so it cannot be recovered, which takes longer but is more find than straightforward deleting files.
Windows will ask you to confirm, then it will restart the computer and begin the wipe process. This can take 30 minutes to several hours depending on the size of your drive and how fast your computer is. When it finishes, the computer will restart and show the Windows setup screen, where the new owner can create their account.
If you cannot access Settings or the Reset tool does not work, you can wipe Windows using a bootable USB drive. read the Windows Media Creation Tool from Microsoft's website on another computer, create a bootable USB drive, boot your computer from that drive, and choose the option to do a clean install of Windows. This method is more technical but works even if Windows will not start normally.
Wipe a Mac using Erase All Content and Settings or Recovery Mode
Newer Macs with Apple Silicon chips (M1, M2, M3, and later) have a built-in Erase All Content and Settings tool. Older Intel-based Macs use a different process through Recovery Mode.
On an Apple Silicon Mac, click the Apple menu in the top left, go to System Settings, then click General. Scroll down and click Transfer or Reset, then click Erase All Content and Settings. Click Continue, enter your password, and confirm. The Mac will restart and erase itself, then show the setup screen.
On an Intel Mac, restart the computer and hold Command + R while it boots to enter Recovery Mode. Once Recovery Mode loads, click Utilities in the menu bar, then Disk Utility. Select your main drive (usually called Macintosh HD), click the Erase button, and confirm. After the drive is erased, close Disk Utility, click the Apple menu, and choose Reinstall macOS. Follow the prompts to reinstall the operating system. This takes 30 minutes to an hour.
If you do not know whether your Mac has an Apple Silicon or Intel chip, click the Apple menu, select About This Mac, and look at the Processor line. If it says M1, M2, M3, or M-series, use the Erase All Content and Settings method. If it says Intel, use the Recovery Mode method.
Wipe a Linux computer from a live USB
Linux does not have a built-in graphical wipe tool like Windows and Mac, so you will need to boot from a live USB drive and use command-line tools. This method is more technical than Windows or Mac wiping.
On another computer, read a Linux live image (Ubuntu is the most common choice) and create a bootable USB drive using a tool like Balena Etcher or Rufus. Plug the USB drive into your Linux computer, restart it, and boot from the USB drive by pressing F12, Esc, or Del during startup (the key varies by computer model). Once the live Linux desktop loads, open a terminal.
To wipe the drive, you can use the shred command to overwrite all files, or the dd command to overwrite the entire drive with random data. The dd method is more thorough but slower. Type sudo dd if=/dev/zero of=/dev/sdX bs=1M, replacing sdX with your drive name (find it by typing lsblk first). This will take several hours for a large drive. When it finishes, shut down the computer. The new owner can then boot from a Linux live USB or installation media to install their own operating system.
Verify the wipe worked before you hand over the computer
After wiping, the computer should boot to a setup screen where you create a new account. On Windows, you see the "Let's get your free guide" screen. On Mac, you see the setup assistant asking for your language and region. On Linux, you see a blank desktop or login screen. If the computer boots to any of these screens, the wipe was successful.
Do not log into any of your old accounts during this test. straightforward verify that the computer starts up and reaches the setup screen, then shut it down. This confirms that the operating system reinstalled correctly and that the drive is ready for the new owner.
If the computer does not boot to a setup screen, or if it boots to your old desktop with your files still visible, the wipe did not complete. Restart the wipe process and make sure you selected the option to remove everything and clean the drive (on Windows) or fully erase the drive (on Mac).
What to do if the computer will not start or wipe normally
If your computer will not start Windows or macOS, or if the built-in wipe tools do not work, you can still wipe the drive using a bootable USB. For Windows, read the Windows Media Creation Tool and create a bootable USB on another computer. For Mac, read macOS from the App Store on another Mac, then use the createinstallmedia command-line tool to create a bootable USB. For Linux, create a bootable live USB as described above.
Boot your computer from the USB drive, and follow the installation or recovery process. This will wipe the drive and reinstall the operating system even if the computer is broken or will not start normally. If you are not comfortable with these steps, a local computer repair shop can wipe the drive for you, usually for $20 to $50.
Frequently Asked Questions
Can I wipe just one drive if my computer has multiple drives?
Yes. During the wipe process, you can choose which drive to erase. On Windows Reset this PC, you select the drive before confirming. On Mac Disk Utility, you select the specific drive before clicking Erase. Make sure you select the correct drive — erasing the wrong one will destroy files you want to keep.
What if I forgot to back up my files before wiping?
If you used the "clean the drive" option on Windows or fully erased the drive on Mac, recovery is very difficult or impossible because the data was overwritten. If you only deleted files without cleaning the drive, a data recovery service might be able to recover some files, but this is expensive (often $300 to $1000). Always back up before wiping.
Do I need to remove the hard drive and wipe it separately?
No. The built-in wipe tools on Windows, Mac, and Linux wipe the drive while it is still inside the computer. You only need to remove the drive if the computer will not start at all and you cannot boot from a USB drive, or if you want to keep the drive and wipe it on another computer.
How long does wiping take?
Wiping usually takes 30 minutes to 2 hours on a modern computer with a solid-state drive (SSD). Older computers with traditional hard drives can take 4 to 8 hours, especially if you choose the option to securely overwrite the drive. Let the computer run uninterrupted until it finishes.
Should I wipe the computer before or after I list it for sale?
Wipe it after you have a buyer and are ready to hand it over. If you wipe it too early, you might need to use the computer again before the sale closes, and you will have to set it up from scratch. Wipe it the day before or the day of the handoff, then verify it boots to the setup screen and shut it down.