After typing the command, press ''Enter'. The command will list all the drives that are available with the computer. Type the command as mentioned above and press ''Enter'' to launch DiskPart. Search command prompt, right-click, and run it as an administrator. To clean the drives follow the following steps: The time taken by the complete process depends on the disk size. It is recommended to take a backup first if there is some important data in the drive. All the stored data gets deleted, and you can't undo it.
Part 3: How to Delete Hard Drive Partition Using DiskPart?.Part 2: How to Format Hard Drive Using Command Prompts?.Part 1: How to Clean Hard Drive Using DiskPart?.