删除具有焦点的分区。 在开始之前,必须选择一个分区才能使此操作成功。 Use the select partition command to select a partition and shift the focus to it.
Warning
删除动态磁盘上的分区会删除磁盘上的所有动态卷,因而会破坏所有数据并会使磁盘处于损坏状态。
不能删除系统分区、启动分区或任何包含活动页面文件或故障转储信息的分区。
Syntax
delete partition [noerr] [override]
Parameters
Parameter | Description |
---|---|
noerr | 仅用于脚本。 出现错误时,DiskPart 继续处理命令,就像未发生错误一样。 如果没有此参数,则错误会导致 DiskPart 退出并显示错误代码。 |
替代 | 允许 DiskPart 删除任何类型的分区。 通常,DiskPart 只允许删除已知的数据分区。 |
Remarks
To delete a dynamic volume, always use the delete volume command instead.
可以从动态磁盘中删除分区,但不应创建分区。 例如,可以删除动态 GPT 磁盘上的未识别的 GUID 分区表 (GPT) 分区。 删除这样的分区不会使由此而得的可用空间变得可用。 Instead, This command is intended to allow you to reclaim space on a corrupted offline dynamic disk in an emergency situation where the clean command in DiskPart can't be used.
Examples
若要删除具有焦点的分区,请键入:
delete partition