You can remove a Windows 10 recovery partition using the diskpart command-line tool by running an elevated Command Prompt or PowerShell, selecting the correct disk, and then using the delete partition override command. This process requires you to identify the partition number and use the override parameter, which is mandatory to delete a recovery partition.
Step 1: Open an elevated Command Prompt or PowerShell
- Search for "Command Prompt" or "PowerShell" in the Start menu.
- Right-click the result and select "Run as administrator."
- Click "Yes" to allow the app to make changes.
Step 2: Open the diskpart utility
- In the elevated command prompt, type
diskpartand press Enter.
Step 3: Identify the disk and recovery partition
- Type
list diskand press Enter to see a list of all the drives on your computer. - Note the number of the disk that contains the recovery partition.
- Type
select disk <NUMBER>(replace<NUMBER>with the correct disk number) and press Enter. - Type
list partitionand press Enter. This will show all partitions on the selected disk. - Note the number of the recovery partition. It’s often the last partition on the drive and may have a size of several hundred megabytes.
- Type
select partition <NUMBER>(replace<NUMBER>with the correct partition number) and press Enter.
Step 4: Delete the recovery partition
- Type
delete partition overrideand press Enter. Theoverridecommand is crucial to bypass permission restrictions for recovery partitions.
Step 5: Exit diskpart
- After the command executes, the recovery partition will be deleted.
- Type
exitand press Enter to close the diskpart utility. - The space will now show as "unallocated" in Disk Management. You can then extend your main partition to use this space.
