Site Overlay

Diskpart

Using Diskpart, you can clean the hard disks on your computer via the command line, without the need for any additional software.

For various reasons, users may want to clean a certain hard disk or hard disk partition completely. There are plenty of different software designed to perform this process. But with Microsoft's Diskpart tool, you won't need to use these software for a simple deletion.

Since erasing with Diskpart will completely clean the disk you have chosen, if you have more than one disk, you should first make sure that you have selected the correct drive. To do this, right-click the Start icon and click Disk Management in the drop-down list.

image 13
image 14

In the window that appears, you will see the hard disks you have, the disk partitions inside these disks. At the bottom of the window you will see that the disks are numbered. Make a note of the number of the disk you want to erase and right-click the Start icon and run the command prompt as administrator.

After the command prompt opens, type diskpart at the command prompt to confirm. This will open a new command window.

Diskpart during formatting: You can also run the diskpart tool from the Format screen. To do this, just press Shift + F10 to open the Command Prompt, then type diskpart and press Enter.

image 15

At the diskpart command line, type list disk to confirm. This command will list the disks on your system.

image 16

Check the disk number on the listed disks that you want to erase. If it is the same as the number you made the note for, we can proceed with the deletion.

image 17

You will need to select the disk you want to erase to start the erasing process. Select the disk to erase by typing select disk [disk number] at the command prompt. Example: select disk 1.

image 18

After you see the notification that the disk is selected, you can start the disk cleanup process by entering the clean command. After the cleanup process is complete, you can exit the command line. Now the disk you deleted will be ready to use again after partitioning.