DiskPart is a disk partitioning command-line utility that is compatible with all recent versions of Windows. DiskPart is often used to remove disk partitions; however, when you try to delete hidden or system protected partitions using the delete partition
command, the following error shows up:
Cannot delete a protected partition without the force protected parameter set
DiskPart throws this error as a warning to confirm that the user knows they are attempting to delete a recovery partition. To overcome this issue, one can use the override parameter
to inform Windows that they do intend to delete hidden partitions. We will cover how to do so in this shot.
Follow the steps below to resolve the error:
list disk
into the DiskPart command line that has opened up. Doing so will display a list of disks connected to your device.select disk X
command where X is the number of the disk we want to select.list partition
to view the partitions available of the selected disk.select partition X
command, where X is the partition we wish to delete.delete partition override
.exit
command.Free Resources