Diskpart to delete partition

Sometimes Windows can be tricky when wanting to remove partition(s). A good tutorial is found from https://www.disk-partition.com/diskpart/delete-partition-4125.html

Method1: Using the Diskpart to delete partition
Diskpart is a disk management tool snap-in Windows. Different with Disk Management, it uses the command line( CMD) to execute tasks. Diskpart delete partition command lline is a good way to delete partition with syntax.

1. Open the Command prompt, type: diskpart

2. At the diskpart prompt, type:list disk

Then, all the disks on your computer will be list, you should figure out the disk number of the disk from which you want to delete the partition.

3. Type:select disk n

n is the disk number. Select the disk which contains the partition you want to delete.

4. Type:list partition

5. Then, type: select partition n

n is the partition number. Here you need to select the partition which you want to delete.

6. Type:delete partition

Then, delete partition using Diskpart will be shown as the following screen shot shows:

f you are using dynamic disk, delete the partition can delete all dynamic volumes on the disk. To delete a dynamic disk, you can use the “delete volume” command instead.

If diskpart does not allow to delete partition, use override option.


delete partition override


Enables DiskPart to delete any partition regardless of type. Normally, DiskPart enables you to delete only known data partitions.
Source DiskPart Command-Line Options

How to delete an OEM partition

”Cannot delete a protected partition without the force protection parameter set.”

This is a warning from Windows that you need to be doubly sure that you want to delete this partition.

If you see this error when trying to delete a partition then use:

delete partition override