How to erase hard drive with cmd command prompt permanently or with freeware


IM-Magic Partition Resizer is an excelllent free alternative for cmd to perform the erasing work that could remove every byte of old data on hdd without any chance of recovery.

Andrew Wright1/8/ 2018

by Andrew Wright

Follow @IM-Magic

Permanent Erasing Utility Download

Download IM-Magic Partition Resizer Free to delete everything on hard disk forever and it is 100% freeware.

Is it possible to erase a hard drive or a removable usb disk with DOS CMD command prompt? When you want to securely erase your hard drive, cmd is one option but not the last since there are some better options for safely and completely wiping out data on hard drive, then what's it? The answer is freeware IM-Magic Partition Resizer Free, which is a 100% free for erasing data on hard drive.

This article contains two parts,
Part I: erase hard drive with freware Partition Resizer
Part II: erase hard disk with cmd command line

Method one: Easier and safer solution to completely remove information on hdd

Partition Resizer is a free disk wiper for Windows 10, 8.1,7, Vista, XP. If you want to use it on Windows Server OS like server 2003/2008/2012 or more, you may download trial of Partition Resizer Server.

Peparation: download and install freeware Partition Resizer

Step 1, launch the program and open it, find your hard drive that you want to erase on Partition Resizer and then navigate to Wipe Partition by right click the drive that you want to erase.

wipe partition

Note: if you want to erase the whole disk, you may select partitions to erase one by one.

fill data

Just needs a little time waiting in the wiping process. And it is almost done flawlessly.



Method two: use CMD to erase your hard drive data

Step one: open cmd by going to the start up and find type 'CMD' in the find and search toolbar.

Shows the command prompt window C:\Windows\system32>_ is the bottom line.

Type ‘diskpart’ and press Enter button on your keyboard
Shows the command prompt window shows that I have typed 'diskpart'
Once you see the disk part window, type ‘list disk’ to let it show all disk on your PC.

Shows the command prompt window and that I have typed 'list disk'

Once it shows your disk, type ‘select disk 1’ and then press enter to get the disk that you want to erase selected.
Shows the command prompt window and that I have typed 'select disk 1'

Once it says Disk 1 is selected, then go to the next step.

Shows the command prompt window and that I have typed 'clean'
Type ‘Clean’ to start cleaning.

Shows the command prompt window and displays DiskPart succeeded in cleaning the disk. DiskPart succeeded in cleaning the disk is squared off.


For more detailed guide on how to erase hdd with cmd, you may visit that showed details using DOS command line.

Caution: using cmd to clean data on your disk would make your data disappear and data are no longer be able to be accessed.

Don't Forget to Share This Article with Your Friends

More Related Articles You May Like

Related Product


Copyright © 2017 IM-Magic Inc. All rights reserved. Windows® is trademark of Microsoft Inc., and Partition Magic® is trademark of Symantec Inc registered in the U.S. and other countries . IM-Magic's software is not developed by or affiliated with Microsoft nor Symantec Inc.