business tech

How to use Diskpart Clean All in Windows 10 for Secure Erase?

Today, there are many users who want to securely wipe their hard drives in Windows 10, and the Diskpart command line tool is one of the most common ways to do so, especially for IT technicians or network administrators. And you can continue to see below if you don’t know how to perform the data erasure and learn everything about it.

Does Diskpart Clean All?

Diskpart command line provides users two ways to erase a hard drive in Windows 10, namely using clean and clean all commands. Both of them can erase a disk leaving it unallocated and not initialized, but are not exactly the same.

For Diskpart clean command, it only deletes data on the surface of a disk and makes these data invisible. But anyone with bad intentions are able to retrieve your data and get it back easily with a professional data recovery software.

For Diskpart clean all command, it not only deletes the data you can see on a hard disk, but also overwrite the original data with Zero value. Compared with clean commands, this makes data recovery operations very difficult. 

Therefore, if you want to avoid a data breach as soon as possible, you’d better choose the second way to wipe a disk. 

Use Diskpart Clean All in Windows 10 Step by Step

Here you will use Diskpart clean all commands to wipe a hard disk safely. As mentioned early, this operation will delete all the data on a disk, thus you need to make some essential preparations before the official start.

  • Be sure if there are any data you will use in the near future, and backup it to a different location. Otherwise, you will lose them forever. 
  • Check the disk number and size of the disk you want to wipe and remember it. 
  • To further reduce the risk of wiping a disk by mistake, you need to disconnect all the disks on your computer except for the system disk and the disk you want to wipe. 

Then, without further ado, let’s start to delete all the data on a disk:

Step 1. Type cmd in the search box, select the top result and run as administrator.

Step 2. Then, you will see the command prompt window. Type diskpart in it and hit Enter to open this tool.

Step 3. In the Diskpart command prompt window, type list disk and hit Enter. 

Step 4. Here you will see all the available disks on the computer, type select disk n (disk number) to select the disk you want to wipe and hit Enter.

Step 5. After selecting the right disk, type clean all and hit Enter. It will start the delete the original data on the disk and overwrite it.

read also: Why Online Data Backup Is Important –…

Diskpart Clean All

Wait until the process completes, you will not see this disk in the File Explorer, but it will be displayed in the Disk Management and all the disk space are marked as unallocated space. That’s to say, you cannot use it to do anything, such as, store documents, music, videos, etc. 

To reuse this disk for storage, you still need to create a partition on it and then set file system. After that, assign a drive letter as well. This process can be easily completed in the Disk Management or using CMD.

Honestly, this way is very useful if you are familiar with command prompt. If not, it may be a little difficult to complete this process, because any error may result data loss. Thus, in this case, it’s suggested to use an GUI-based disk wipe utility, AOMEI Backupper Standard, for example.

By using it, you can see all your disk intuitively in this software and easily clean a hard drive, selected partition or unallocated space in Windows 7/8/10 without learning any parameters. It supports 4 disk wiping methods and you will use the first option “Fill sectors with Zero” to clean disk. It is free to use, and able to achieve the same effect as Diskpart Clean all commands. For more thorough way, you need to upgrade to the professional version.

Easier Way to Secure Erase HDD in Windows 10

You may already know you will use disk wipe software – AOMEI Backupper Standard to securely erase HDD in Windows 10. Let’s learn the detailed steps below.

Step 1. Install AOMEI Backupper Standard and open this tool. Then navigate to Tools and choose Disk Wipe to move on. 

Diskpart Clean All

Step 2. In the wiping type window, select Wipe disk if you want to wipe all the data on a disk. Then, click Next.

Diskpart Clean All

Note: If you only want to wipe specific partition or unallocated space, select the first option in the Wiping Type window.

Step 3. In the Select the disk to wipe window, you will see all the disks. Select the disk you want to wipe and click Next. 

Diskpart Clean All

Step 4. In the Wiping Method window, select Fill sectors with Zero and click Start to wipe your disk and data on it. The disk wiping time depends on the amount of data on your disk.

Diskpart Clean All


  • This feature currently doesn’t support wiping dynamic disks.
  • If you want to wipe a system disk, it’s suggested to perform data erasure process on another computer by connecting it as an external disk. Otherwise your computer will not boot after wiping.

That’s all for how to wipe a disk using Diskpart clean all commands or an easier way. Select one of them per your needs. If you are familiar with command line, select the first method. If you prefer an easy way, select the second one. And this software is still a free backup software, so you can use it to protect your data continuously, such as, disk backup, system backup, schedule backup, incremental or differential backup, etc.

In addition, if you want to add an extra layer of your data, it’s suggested to backup files to cloud drive using cloud backup service. It can greatly reduces the data loss risk due to computer failure, such as, system crash, disk failure, spilled milk, etc.

What's your reaction?

In Love
Not Sure

You may also like

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.