

'Clean all' doesnt provide any extra benefit other than a secure erase over just 'clean'. To open Command prompt, press Win + R, type cmd in the Run box, and click OK. Run Command Prompt as administrator, type diskpart, and press Enter. Then the diskpart clean will work normally. This is useful when say trashing or giving the drive away. Thus, you need to unlock, decrypt and remove the write protection from the target disk at first. DISKPART> clean allĭepending on the size of your disk, it’s going to take a very long time fo wipe out an entire disk. Hello, The 'clean all' command is basically just for the purpose of doing a secure erase to permanently wipe all data on the drive by zeroing every sector. Then, fire up the following command to start wiping out the entire disk. And use the following command to select the disk that you want to wipe out. Make a note of the disk number of the target disk listed in the Disk # column. You will see DISKPART> after, indicating that you are now in the DiskPart interactive mode.įirst, run the following command to display all installed disks on your computer. Open an elevated command prompt window and launch DiskPart. DiskPart has a command called Clean that removes all existing partitions or volumes on a selected disk and revert this disk to the initial state to get a fresh start.ĭo you know that the Clean command has a switch called ALL that instructs the command to write zero on each and every byte\sector on the selected disk, which completely wipes out all data contained on the disk?
Clean disk diskpart windows#
If you were to choose the latter approach, do you know Windows has a less known feature in a built-in command line that can securely wipe out the entire disk?ĭiskPart is a text-mode command interpreter that has been around since Windows XP, letting you manage disks, partitions, or volumes by using scripts or directly executing at a command prompt. Before you toss your computer to the wasteland, you need to completely destroy the disk that stores your personal information and data, either physically drill a hole to it or completely and use a tool like DBAN or KillDisk to completely and securely wipe out data stored on the disk.
