Cannot delete partition on Windows 10 / 11 Fix

Removing a partition is an integral part of the Disk Management system. You can’t increase the size of a partition unless you delete an existing partition from the system. But, what if you can’t delete the partition from your HDD? Don’t worry. The existing paged files on the system drive or the existing system files on the drive may cause this problem on your computer. Just follow these easy fixes on your computer to solve the issue.

Fix 1 – Delete the partition from the CMD

You can remove the partition using the command line.

1. Type “cmd” in the Search box beside the Windows icon.

2. After that, right-click on “Command Prompt” which appears on the elevated search result, and then click on “Run as administrator“.


Cmd Search New Min


3. To do this you have to enter diskpart management. Simply copy-paste these two commands one-by-one and hit Enter to execute both of the commands sequentially on your computer.



List Disk Min


4. Now, in the list of the disks, you will have to check the “Disk No” that contains the partition.

Check out the size of the disks and then decide which is disk contains the partition. Usually, the drive that is of the highest size is the disk that contains the partition.

( Example-In this case,  it is the “Disk 0” as the size of the disk is 931 GB).


Disk 931 Min


5. To do so copy-paste and modify these commands in Command Prompt window one-by-one and hit Enter after each of them to see the partitions of the disk.

SELECT DISK ( disk no.)


List Partition Min


Finally, you can now delete the partition even if it is protected by passing a single command.

6. Paste these commands one at a time and modify the command according to it, and hit Enter.

SELECT PARTITION (partition no.)

Replace partition no. with the partition no you want to delete. You can distinguish between the partitions according to their sizes.

Example – We are removing partition 6. So, the command will be –



Select Partition 6 Min


This will remove the partition from your hard disk drive.  In the same way you can delete all the partitions, selecting them one by one.

Your problem should be solved.

Note: – If this does not work Try CLEAN in place of DELETE PARTITION OVERRIDE in step 6

Fix 2 – Remove the paged files from the partition

If the partition you are trying to delete contains some paged files on it, you can’t remove that partition.

1. Right-click on the Windows key and click on the “Run“.

2. Next, write this command and then hit Enter to access the System Properties.



Press Win + R To Open Run, Type Sysdm.cpl And Hit Eter


3. In the System Properties window, go to the “Advanced” tab.

4. After that, you need to click on the “Settings“.


Advanced Settings Min


5. Once you see that the Performance Options panel has opened up, go to the “Advanced” tab.

6. In the ‘Virtual memory‘ panel, click on “Change“.


Advanced Change Min


7. After that, uncheck the box beside the “Automatically manage paging file size for all drives” option.

8. Then, click on the partition that you want to remove.

For example, we are taking the “C:” drive. So, we have selected the “C:” drive.


C Drive Select Min


9.  Next, click on the “No paging file” option.

10. Finally, click on “Set” to set it.


No Paging File Set Min


11. If you receive any warning, simply click on “Yes” to confirm the change.


Sytem Props Yes Mesasge


12. Finally, click on “OK” to modify the settings.


Ok Min


13. After doing these, you have to click on “Apply” and click on “OK” to save it.


Apply Ok Min


Once you have done that, restart your computer.

Now, try to remove the partition. This should solve the problem you are facing.