Wiping a hard drive in Windows 10 using the command prompt is a straightforward process. First, you’ll open the command prompt with admin rights, then use the Diskpart utility to select and clean the drive. This effectively erases all data, leaving the drive ready for a fresh start. Remember, this process is irreversible, so make sure you’ve backed up any important files beforehand.
How to Wipe a Hard Drive in Windows 10 Using Command Prompt
In this section, we’ll walk you through the steps to wipe a hard drive using Windows 10’s command prompt. Follow these steps to ensure a smooth and successful process.
Step 1: Open Command Prompt as Administrator
First, search for “cmd” in the Windows search bar, right-click on the Command Prompt, and select “Run as administrator.”
Opening the command prompt with admin rights is crucial because standard privileges won’t allow you to access the necessary system tools. This ensures you have the power to make significant changes to your system, like wiping a hard drive.
Step 2: Launch Diskpart
Type diskpart into the command prompt and hit Enter.
Diskpart is a powerful utility within Windows that allows you to manage your disk drives. It’s the tool we’ll be using to select and clean your hard drive, so make sure it’s launched correctly.
Step 3: List Available Disks
Type list disk and press Enter to see all the disks connected to your computer.
This command will reveal all connected disks, each with a number assigned to it. Identifying the correct disk is essential to avoid wiping the wrong one, so take your time with this step.
Step 4: Select the Disk to Wipe
Type select disk X (replace X with the number of the disk you want to wipe) and hit Enter.
By selecting a disk, you’re telling Diskpart which drive you want to focus on. Double-check the disk number before proceeding to avoid any accidental data loss on the wrong drive.
Step 5: Clean the Disk
Type clean and press Enter to wipe the selected disk.
The clean command will erase everything on the disk, removing all partitions and data. This is the point of no return, so ensure you’re wiping the correct disk before executing this command.
After completing these steps, your chosen hard drive will be wiped clean. All data, partitions, and formatting will be removed, leaving you with a blank slate. You can now choose to reformat the drive or use it for new installations.
Tips for Wiping a Hard Drive in Windows 10 Using Command Prompt
- Always back up important data before starting the wipe process.
- Double-check the disk number before selecting it in Diskpart.
- Be aware that wiping a hard drive is irreversible; proceed with caution.
- Use a notebook to jot down disk numbers if you have multiple drives.
- Avoid using the clean command on your system drive to prevent errors.
FAQs
Why should I wipe my hard drive?
Wiping a hard drive ensures all data is permanently erased, which is useful when selling or disposing of a computer.
Can I recover data after wiping the drive?
No, once a drive is wiped using these commands, data recovery is nearly impossible.
Is wiping the same as formatting?
Not exactly; wiping removes all data and partitions, while formatting prepares the drive for use without fully erasing data.
What if I wipe the wrong drive?
Accidentally wiping the wrong drive can lead to data loss. Always verify the disk number before proceeding.
Can I wipe a specific partition instead of the whole drive?
Yes, but the steps differ slightly. Research partition-specific commands if needed.
Summary
- Open Command Prompt as Administrator.
- Launch Diskpart.
- List Available Disks.
- Select the Disk to Wipe.
- Clean the Disk.
Conclusion
Wiping a hard drive in Windows 10 using the command prompt is an effective way to ensure all data is permanently erased from your drive. Whether you’re preparing a computer for sale, safeguarding sensitive information, or simply starting fresh, this method provides peace of mind with its thorough data removal process.
Remember, once the clean command is executed, there’s no turning back. So, take your time, verify each step, and ensure your important data is securely backed up before beginning. This guide equips you with the know-how to manage your hard drives confidently, transforming you from a curious beginner to someone who can wield the command prompt like a pro. If you’re interested in more advanced disk management techniques, consider exploring additional Diskpart commands to deepen your understanding. Happy cleaning!

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.