Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Updated: April 17, 2012

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

The Diskpart Clean command removes any and all partition or volume formatting from the disk with focus.

clean [all]


Parameter Description


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 are 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:


Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft