清理

从获得焦点的磁盘中删除所有分区或卷格式设置。

Note

For a PowerShell version of this command, see clear-disk command.

Syntax

clean [all]

Parameters

Parameter Description
all 指定将磁盘上的每个扇区都设置为零,这会完全删除磁盘上包含的所有数据。

Remarks

  • 在主启动记录 (MBR) 磁盘中,只会覆盖 MBR 分区信息和隐藏的扇区信息。

  • 在 GUID 分区表 (gpt) 磁盘上,会覆盖 gpt 分区信息,包括保护性 MBR。 不存在任何隐藏扇区信息。

  • 必须选择一个磁盘,此操作才能成功。 Use the select disk command to select a disk and shift the focus to it.

Examples

若要从所选磁盘中删除所有格式设置,请键入:

clean