Deletepartition: Difference between revisions

From Piszczynski
 
Line 9: Line 9:
<syntaxhighlight lang="powershell" line>diskpart
<syntaxhighlight lang="powershell" line>diskpart
list disk
list disk
select disk <disk number><syntaxhighlight>
select disk <disk number></syntaxhighlight>
<syntaxhighlight lang="powershell" line>list partition
<syntaxhighlight lang="powershell" line>list partition
select partition <partition number>
select partition <partition number>
delete partition override<syntaxhighlight>
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.

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

diskpart
list disk
select disk <disk number>
list partition
select partition <partition number>
delete partition override


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.