Knowledge Base


Search by either entering keywords or by selecting a product.

Cleaning a Disk in Windows 7 Using Diskpart


  1. Open Disk Management and locate the disk in question. In our example it will be disk 5. This is a 3 TB disk with an MBR partition table.
    disk_clean_01.jpg
  2. Open the Start menu and go to "Accessories". Right-click on "Command Prompt" and choose "Run as Administrator".
    disk_clean_02.jpg
  3. At the prompt, type "diskpart" and hit Enter.
    disk_clean_03.jpg
  4. At the diskpart prompt type "list disk". This will list all the hard drives in the system. Note that disk 5 is the disk we need to clean. The free space indicated in diskpart means "space that is available for use on the drive but which does not have a volume defined". If there were a volume defined on this drive it would likely show zero free space.
    disk_clean_04.jpg
  5. At the diskpart prompt, type "select disk x", where x is the disk number that you want to clean. In our example, that is disk 5.
    disk_clean_05.jpg

    Note: Make absolutely certain you have selected the correct disk. If you have selected a drive which contains data that you want to keep and you proceed beyond this point, that data will be erased. 

  6. At the diskpart prompt, type "clean" and hit Enter. You will not be given a chance to opt out. Once you hit Enter, the disk will be erased.
    disk_clean_06.jpg
  7. If you type "list disk" again you will see that the disk that was cleaned now shows that all space on the drive is free. That means there are no volumes defined on that drive.
    disk_clean_07.jpg
  8. If we go back and look at the disk in Disk Management, it should now show as "Unknown" and "Not Initialized. This disk is now ready to be used for a new application.
    disk_clean_08.jpg
X