Wipe your hard drive completely before handing over your computer
Selling a used PC means removing everything on it—your files, passwords, browser history, and any software tied to your account. A straightforward delete or factory reset is not enough; deleted files can be recovered with basic tools, and a factory reset often leaves your personal data intact on the drive. A complete wipe overwrites the entire hard drive so that old data cannot be recovered, and it removes your Windows license and any software you installed.
The method depends on whether your PC has a traditional hard drive (HDD) or a solid-state drive (SSD), and whether you want to reinstall Windows or leave the drive blank. Most people selling a PC should use Windows' built-in reset tool, which wipes the drive and reinstalls Windows in one step—leaving the buyer with a clean, licensed copy to set up themselves.
Key Takeaways
- Back up any files you want to keep before you start; wiping the drive destroys everything on it permanently.
- Use Windows Settings > System > Recovery > Reset this PC with the "Remove everything" option to wipe the drive and reinstall Windows at the same time.
- If you have an SSD, the reset tool is sufficient; if you have an older HDD, consider a third-party wipe tool like DBAN for extra assurance that data cannot be recovered.
- Disconnect external drives, USB devices, and network storage before you begin so you do not accidentally wipe the wrong drive.
- After the wipe completes, the PC will restart and ask the buyer to set up Windows with their own account and license key.
Back up your files before you wipe anything
Before you start the wipe process, move any files you want to keep to an external drive, cloud storage, or another computer. Once you begin a full wipe, everything on the PC's hard drive is gone. Check your Documents, Downloads, Desktop, Pictures, and Videos folders, as well as any custom folders you created. If you use cloud services like OneDrive, Google Drive, or Dropbox, make sure your important files have synced to the cloud first.
Also back up any browser bookmarks, email settings, or other data you may have forgotten about. Most browsers let you export bookmarks as an HTML file. If you use Outlook or another email client, export your mail folders or note your account settings so you can set them up on a new device later.
Use Windows Reset to wipe and reinstall in one step
The easiest and most reliable method for most sellers is Windows' built-in reset tool. It wipes your hard drive and reinstalls a fresh copy of Windows at the same time, so the buyer receives a clean PC with a valid Windows license. 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 remove files and clean the drive. Choose "Remove files and clean the drive" for a more thorough wipe—this takes longer but makes recovery harder. Windows will then restart, show a progress screen, and reinstall itself. The whole process can take 30 minutes to two hours depending on your drive size and speed. When it finishes, the PC will boot into the Windows setup screen, ready for the new owner to create their account.
If you cannot access Settings or Windows will not start, restart the PC and press the key for boot options (usually F12, F2, or Del during startup—your PC maker's logo screen will show the correct key). Boot from Windows installation media or recovery media if you have it, or use a Windows installation USB created on another PC.
For older hard drives, use a dedicated wipe tool
If your PC has a traditional hard drive (HDD) rather than an SSD, Windows Reset is sufficient for most buyers. However, if you want extra assurance that no data can be recovered, you can use a third-party tool like DBAN (Darik's Boot Negator), which overwrites the entire drive multiple times with random data. This is slower than Windows Reset but makes recovery nearly impossible.
read DBAN on another PC, write it to a USB drive using a tool like Rufus, then boot your PC from that USB. DBAN will detect your hard drive and let you choose how many passes to write (one pass is usually enough for a used PC sale). Start the wipe and let it run—this can take several hours for a large drive. When it finishes, your drive will be blank, and you can reinstall Windows using installation media or leave it blank for the buyer to set up themselves.
SSDs handle data differently than HDDs and do not need this extra step; Windows Reset is sufficient because SSDs use wear-leveling technology that makes data recovery much harder than on a traditional drive.
Disconnect external drives and network storage before you start
Before you begin any wipe process, unplug all external hard drives, USB flash drives, SD cards, and any other storage devices connected to the PC. Also disconnect from any network storage or mapped drives. If you do not, you risk accidentally wiping the wrong drive and losing files you meant to keep.
Check Device Manager or File Explorer to see what drives are connected. In File Explorer, look at "This PC" and note which drives are internal (usually C:) and which are external. If you are unsure, unplug everything except your keyboard and mouse, then plug devices back in one at a time after the wipe is complete.
Remove your Microsoft account and software licenses
Before you wipe, sign out of your Microsoft account on the PC. Go to Settings > Accounts > Your info and note which account is signed in. If you use OneDrive, sign out there too (Settings > Accounts > OneDrive). This prevents the new owner from accidentally inheriting your account or having trouble setting up their own.
Also uninstall any software you paid for or that is tied to your account—things like Adobe Creative Suite, Microsoft Office, antivirus software, or games. You cannot transfer these licenses to the new owner, and leaving them installed may cause set up errors. Windows Reset will remove most installed programs automatically, but it is good practice to uninstall anything important yourself first.
Your Windows license is tied to your PC's hardware. When you reset Windows, it will reinstall with a generic license key. The new owner can use the PC with Windows in reduced-functionality mode, or they can enter their own license key or buy a new one.
What to do after the wipe is complete
Once Windows Reset finishes, the PC will restart and show the Windows setup screen. At this point, the drive is clean and the PC is ready to sell. You can either leave it at the setup screen for the buyer to complete, or you can create a temporary account and make sure everything boots correctly before handing it over.
If you created a temporary account, make sure to tell the buyer that they should delete it and create their own account when they first use the PC. Do not leave your personal account on the machine.
Before you hand the PC over, test that it boots, that the keyboard and trackpad work, and that you can open a browser. This confirms the wipe was successful and the PC is in working order. If you wiped the drive completely blank (using DBAN or similar), you will need to reinstall Windows yourself using installation media before the buyer can use it.
Frequently Asked Questions
Can the buyer recover my files after I wipe the drive?
Windows Reset makes recovery very difficult for a typical buyer. If you use the "Remove files and clean the drive" option, Windows overwrites deleted data, making it much harder to recover. For SSDs, recovery is nearly impossible because of how the drive manages data. For older HDDs, a determined person with specialized tools might recover some fragments, but this is rare and expensive.
Do I need to reinstall Windows myself, or does the reset tool do it?
Windows Reset reinstalls Windows automatically as part of the process. When it finishes, the PC will boot into the Windows setup screen, and the new owner can create their own account. You do not need to do anything else unless you used a tool like DBAN, which leaves the drive blank and requires you to reinstall Windows separately.
What if I do not have a Windows installation USB or recovery media?
You can create one on another PC by downloading the Windows installation tool from Microsoft's website and writing it to a USB drive. If you cannot access another PC, you can try restarting your PC and pressing the recovery key (usually F11 or a similar key shown on the startup screen) to boot into recovery mode without needing external media.
Should I wipe the drive if I am trading in the PC to a retailer?
Check the retailer's instructions first. Some retailers prefer to wipe the drive themselves, while others ask you to do it. If they do not specify, wiping the drive yourself is the safer choice—it ensures your data is removed and the retailer receives a clean machine.
How long does a full wipe take?
Windows Reset usually takes 30 minutes to two hours, depending on your drive size and speed. Using the "Remove files and clean the drive" option takes longer than a standard reset. A third-party tool like DBAN can take several hours for a large drive. Plan for at least an hour and do not interrupt the process once it starts.