m (1 revision imported) |
|||
Line 7: | Line 7: | ||
Use the following commands: | Use the following commands: | ||
<syntaxhighlight lang="powershell" line>diskpart | |||
list disk | |||
select disk <disk number><syntaxhighlight> | |||
<syntaxhighlight lang="powershell" line>list partition | |||
select partition <partition number> | |||
delete partition override<syntaxhighlight> | |||
Using the ovverride option will allow to delete protected partitions, use with caution. You cant delete the system partition, boot partition or any partition that contains the active page file or crash dump. | Using the ovverride option will allow to delete protected partitions, use with caution. You cant delete the system partition, boot partition or any partition that contains the active page file or crash dump. |
Revision as of 13:30, 21 November 2023
Delete Protected Partition
When unable to extend volume due to a partition being in the way you may need to delete it.
If the partition is protected such as a recovery partition you will need to use diskpart.
Use the following commands: <syntaxhighlight lang="powershell" line>diskpart list disk select disk <disk number><syntaxhighlight> <syntaxhighlight lang="powershell" line>list partition select partition <partition number> delete partition override<syntaxhighlight>
Using the ovverride option will allow to delete protected partitions, use with caution. You cant delete the system partition, boot partition or any partition that contains the active page file or crash dump.