cleanclean

适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

从具有焦点的磁盘中删除所有分区或卷格式。Removes all partitions or volume formatting from the disk with focus.

备注

有关此命令的 PowerShell 版本,请参阅 明文命令For a PowerShell version of this command, see clear-disk command.

语法Syntax

clean [all]

参数Parameters

参数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.

备注Remarks

  • 在主启动记录 (MBR) 磁盘上,仅覆盖 MBR 分区信息和隐藏扇区信息。On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information is overwritten.

  • 在 GUID 分区表 (gpt) 磁盘上,将覆盖 gpt 分区信息(包括保护 MBR)。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.

示例Examples

若要从所选磁盘中删除所有格式设置,请键入:To remove all formatting from the selected disk, type:

clean

其他参考Additional References