How to Wipe a Hard Drive Clean

To wipe a hard drive clean before selling a Windows PC, choose Remove everything and enable Clean data. A separate HDD needs to be overwritten; an SSD needs its maker's erase method. Formatting alone isn't the same task.

Choose a method based on whether the drive needs to start the computer afterward. Back up what you need before beginning, because the procedures here are meant to remove it.

Choose the method for the drive you're keeping or selling

Start with what you're handing over: a working PC, loose HDD, SSD, or Mac. A Windows reset leaves a usable operating system. Overwriting a separate disk removes its partitions, so it needs setup again before reuse.

Check the drive's model to distinguish a spinning HDD from an SSD. The hard-drive disposal guide explains that distinction if you're unsure. Don't choose an overwrite routine just because Windows calls both devices disks.

Drawing of Windows Reset this PC with Remove everything selected

Make a backup on another device and open several important files from it. Unplug that backup drive before erasing. Disconnect other removable storage too, so the disk list contains fewer drives you could select by mistake.

A company laptop or drive with sensitive business records needs your organization's approved disposal process. Microsoft's consumer cleanup isn't designed for government requirements or industry erasure standards.

Wipe a Windows PC while keeping it usable

On Windows 11, open Settings > System > Recovery and select Reset PC. On Windows 10, open Settings > Update & Security > Recovery, then choose Get started under Reset this PC.

Choose Remove everything. Keep my files is for repairing Windows while preserving personal files, so it's unsuitable for passing the machine to another person.

For Windows installation files, select either Cloud download or Local reinstall. This chooses whether Windows downloads fresh installation files or uses files already stored on the PC. It doesn't replace the separate Clean data setting.

Review the additional settings and enable Clean data. Read the final summary before confirming, especially on a PC with more than one internal drive. Make sure the summary names only the disks you intend to erase.

Microsoft's reset instructions recommend cleaning data when donating, recycling, or selling the PC. This cleans up deleted data while reinstalling Windows for the next owner.

Plug the laptop into power throughout the reset. During reset, the display can remain blank and several automatic restarts can happen. Forcing a restart during that work can make the reset fail.

Leave the initial setup screen for the next owner's account. Don't sign back in to check the desktop. If reset fails, keep the device until you can erase it successfully or use an approved disposal service.

Overwrite a separate spinning hard drive in Windows

Use this route for a secondary or externally attached HDD, not the active Windows drive. An administrator Command Prompt can run DiskPart, Windows' disk-management tool. The disk number must come from your own machine.

Search Start for Command Prompt. Choose Run as administrator. Enter diskpart, then list disk. Compare the capacities to identify the intended HDD.

Enter select disk N, replacing N with the confirmed disk number, then run detail disk. Check the model and listed volumes before continuing. A disk number by itself is too easy to confuse, particularly after reconnecting USB devices.

Drawing of DiskPart showing list disk and detail disk checks with device-specific values concealed

Only after confirming the target, enter clean all. This writes zeros to every part of the selected disk that the tool can access. Wait for DiskPart to report that it completed, then enter exit to leave the tool.

The plain clean command is different: it removes partition information rather than performing the full overwrite. Don't substitute it because it finishes quickly. A missing drive letter alone doesn't show that the data was overwritten.

The overwritten disk is unallocated, with no volume ready to store files. To reuse it, open Disk Management to initialize the disk and create its volume.

Errors or disconnection mean the erase didn't finish. Keep the drive until you can erase it or arrange disposal.

Use a device-specific erase for an SSD

SSDs manage flash differently from spinning disks. Check your drive's support page for its approved secure-erase or sanitize command. For a whole PC, you can also use the consumer reset option when passing it on.

Check the maker's required connection and boot method. Some tools can't erase through a particular USB enclosure and may need another supported connection. Follow those instructions when the command is unavailable.

I'd use the manufacturer's procedure before trying random disk utilities. It tells you which drives the tool supports and how you'll know the erase finished successfully. Keep the erase result with the drive until you've handed it over.

If the drive is failing or the utility can't complete its erase, use a data-destruction service appropriate to the information on it. Reformatting repeatedly doesn't resolve a storage device that can no longer finish an erase.

Erase a Mac or a separate disk attached to it

Erase All Content and Settings requires macOS Monterey 12 or later, plus Apple silicon or an Intel Mac equipped with a T2 Security Chip. On Ventura 13 or later, open System Settings > General > Transfer or Reset to find it.

On Monterey 12, open System Preferences, then choose Erase All Content and Settings from its menu in the menu bar. Follow the password and account prompts. This prepares a supported Mac for its next owner.

For a separate disk, open Disk Utility, choose View > Show All Devices, and select the physical storage device. Click Erase, choose its format and scheme, and use Security Options if that device offers it.

Drawing of the Mac Disk Utility Erase dialog showing Security Options selected

Disk Utility's secure-erase options aren't available for SSDs. If Security Options is absent, ordinary formatting isn't a substitute for a secure erase. Use the SSD maker's supported process or a suitable disposal service.

For an older Intel Mac, first follow the sale preparation checklist for account sign-out. Restart holding Command-R, then open Disk Utility > Continue in macOS Recovery.

Select the startup volume, normally Macintosh HD, and click Erase. Keep the name and use Disk Utility's recommended format. Choose Erase Volume Group if offered; otherwise choose Erase, following any password prompt.

Quit Disk Utility and select Reinstall macOS in Recovery. Follow the installer, then press Command-Q at the setup assistant to leave account setup for the next owner.

Before removing a working disk, consider whether you need to clone it to a Samsung SSD to keep your own computer running.

The Short Version

Save your backup, then identify HDD versus SSD. Choose Windows reset with Clean data for a working PC, an overwrite after confirming the target for a separate HDD, or the SSD maker's erase. Keep any drive you couldn't erase successfully.

Checked December 3, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment