How to Erase a Deejay using Diskpart Clean Command in Windows 10

Yous can use the clean or make clean all Diskpart command options to erase (wipe) a disk leaving it unallocated and not initialized.

The

clean command removes any and all sectionalization or book formatting from the disk with focus. On main kick tape (MBR) disks, but the MBR partitioning information and subconscious sector information are overwritten. On GUID partitioning tabular array (GPT) disks, the GPT partitioning information, including the Protective MBR, is overwritten; in that location is no hidden sector information. The clean command will only mark the data on the disk every bit deleted, and will not zero (secure erase) the disk similar the clean all command below.

The

clean all control performs the same action as the clean command above, simply includes to specify that each and every sector on the disk is zeroed (secure erase), which completely deletes all data independent on the disk. This will make the data on the disk unrecoverable. Information technology will accept about an hour per 320 GB to stop running the "make clean all" command on a deejay.

This tutorial will show yous how to use the clean or make clean all Diskpart commands to erase a disk in Windows 7, Windows 8, and Windows 10.

You must be signed in as an administrator to "clean" or "clean all" a disk.


Be sure you lot verify the correct disk number of the disk you want to erase from Disk Direction (diskmgmt.msc) before doing the steps beneath.

You lot do not desire to erase the wrong disk, and lose data.


Case: Disk that is not initialized and unallocated after running "clean" or "make clean all" command
Erase Disk using Diskpart Clean Command in Windows 10-disk_management_unallocated_disk.jpg Here'due south How:

i Open up either an elevated command prompt or a command prompt at kick for what you desire to apply.

You will not be able to run the clean or clean all control on the disk that Windows is installed on unless you practise so in a command prompt at boot.


2 Type the diskpart command into the command prompt, and printing Enter. (see screenshots below step 5)

3 Type the list disk control into the command prompt, and printing Enter.

4 Blazon the command below into the command prompt, and press Enter.

select disk #

Substitute # in the control to a higher place with the actual disk number (ex: "3") of the disk you desire to clean.

For example: select deejay three


5 Type the clean or clean all command you want to use into the command prompt, and press Enter.

The clean control will finish chop-chop since it only marks the data on the disk as deleted.

The clean all command will take about an hour per 320 GB to cease running since information technology performs a secure erase.

Erase Disk using Diskpart Clean Command in Windows 10-diskpart_clean_command.png Erase Disk using Diskpart Clean Command in Windows 10-diskpart_clean-all_command.png

half dozen You can now initialize the disk, convert the disk to MBR or GPT, and create a New Unproblematic Volume on the deejay. (run across screenshots beneath)

Erase Disk using Diskpart Clean Command in Windows 10-disk_management-initialize_disk.jpg Erase Disk using Diskpart Clean Command in Windows 10-disk_management-new_simple_volume.jpg

That's it,
Shawn

  • Windows 11 Tutorials