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

You lot can use the make clean or clean all Diskpart control options to erase (wipe) a disk leaving information technology unallocated and not initialized.

The

clean command removes any and all sectionalisation or volume formatting from the deejay with focus. On master kicking record (MBR) disks, merely the MBR division information and subconscious sector information are overwritten. On GUID sectionalization table (GPT) disks, the GPT partitioning data, including the Protective MBR, is overwritten; at that place is no hidden sector information. The clean command will but mark the data on the deejay as deleted, and will non cipher (secure erase) the disk like the clean all command beneath.

The

make clean all command performs the aforementioned action equally the clean command higher up, just 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 brand the data on the disk unrecoverable. It will take most an 60 minutes per 320 GB to terminate running the "clean all" command on a deejay.

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

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


Be sure you verify the correct disk number of the disk y'all desire to erase from Deejay Management (diskmgmt.msc) before doing the steps below.

You do not want to erase the incorrect deejay, and lose data.


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

1 Open either an elevated command prompt or a command prompt at boot for what y'all want to use.

Y'all will not exist able to run the clean or make clean all command on the disk that Windows is installed on unless you lot exercise so in a command prompt at kick.


2 Type the diskpart command into the control prompt, and press Enter. (come across screenshots beneath stride v)

iii Blazon the list disk command into the command prompt, and printing Enter.

4 Blazon the command beneath into the control prompt, and printing Enter.

select disk #

Substitute # in the control to a higher place with the actual disk number (ex: "three") of the disk y'all want to clean.

For example: select disk 3


v Blazon the clean or clean all control you want to apply into the command prompt, and press Enter.

The clean command will cease quickly since it just marks the data on the disk every bit deleted.

The make clean all command will take near an 60 minutes per 320 GB to stop 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

6 Y'all can now initialize the disk, convert the disk to MBR or GPT, and create a New Simple Book on the disk. (see screenshots below)

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