Events
29 Apr, 2 pm - 30 Apr, 7 pm
Join the ultimate Windows Server virtual event April 29-30 for deep-dive technical sessions and live Q&A with Microsoft engineers.
Sign up nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Removes all partitions or volume formatting from the disk with focus.
Note
For a PowerShell version of this command, see clear-disk command.
clean [all]
Parameter | Description |
---|---|
all | Specifies that each and every sector on the disk is set to zero, which completely deletes all data contained on the disk. |
On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information is overwritten.
On GUID Partition Table (gpt) disks, the gpt partitioning information, including the Protective MBR, is overwritten. There is no hidden sector information.
A disk must be selected for this operation to succeed. Use the select disk command to select a disk and shift the focus to it.
To remove all formatting from the selected disk, type:
clean
Events
29 Apr, 2 pm - 30 Apr, 7 pm
Join the ultimate Windows Server virtual event April 29-30 for deep-dive technical sessions and live Q&A with Microsoft engineers.
Sign up now