DiskPart error when deleting system-protected partitions
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.
Solution
Follow the steps below to resolve the error:
- Press the Windows key and the “R” key together to open up a Run dialog box. Type “diskpart” into the box and click the “OK” button. Allow DiskPart to make changes to your device in response to the User Account Control prompt.
- Enter
list diskinto the DiskPart command line that has opened up. Doing so will display a list of disks connected to your device.
- Next, we will select a disk from those listed by the previous command using the
select disk Xcommand where X is the number of the disk we want to select.
- Then, we will enter the
list partitionto view the partitions available of the selected disk.
- Now, we will select a partition the same way we selected a disk using the
select partition Xcommand, where X is the partition we wish to delete.
- To delete the selected partition, we will use the
delete partition override.
- Finally, we can exit the DiskPart command line with the
exitcommand.
Free Resources
Copyright ©2025 Educative, Inc. All rights reserved