So you’ve gotten a new hard drive and cloned your existing drive over? Or perhaps you’ve got a virtual machine running out of storage and you’ve added more virtual disk. Well now we encounter the “fun” problem of having the recovery partition at the end of the partition table for the disk. Simply if you don’t need it get rid of it right? Well yes, but you can’t just delete it from disk management.

Obviously you should create backup just in case and use your eyeballs to read what your partition list is (in case its different than mine) and not just blindly copy and paste these commands without understanding them.

Basically at a high level what we’re doing is listing the disk, selecting the disk, listing partitions, selecting the partition and deleting the partition.

Step 1: Start Disk Part

Launch command prompt as administrator. Then type disk part and hit enter. You should see something like this:

Microsoft Windows [Version 10.0.17763.1]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>diskpart

Microsoft DiskPart version 10.0.17763.1

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-3PBGL38

Step 2: List and Select Your Disk

To view a list of disks on your machine enter the “list disk” command. Once you’ve done this you should see all your disks. Next we want to select the disk that your C drive is on, this is typically Disk 0. To select a disk (in this case disk 0) use the following command: “select disk 0”. Your cmd should look something like this now:

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          120 GB    40 GB



DISKPART> select disk 0

Disk 0 is now the selected disk.

Step 3: List and Select the Partition

Next we want to list partitions on your disk. you can do this by running the “list part” command. This returns a list, you should see one with the type “Recovery”. Take note of its partition ### and use it in the next command. In my case Recover is partition 3. To select it I enter “select part 3”. Your cmd should look like this:

DISKPART> list part

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary            500 MB  1024 KB
  Partition 2    Primary             78 GB   501 MB
  Partition 3    Recovery           844 MB    79 GB


DISKPART> select part 3

Partition 3 is now the selected partition.

Step 4: Delete Partition

Note this is not reversible. To delete the partition we simply use the “delete part” command, however since this is a protected partition it will give you an error about permissions. You can get around this using override “delete part override”. See example below:

DISKPART> delete part

Virtual Disk Service error:
Cannot delete a protected partition without the force protected parameter set.


DISKPART> delete part override

DiskPart successfully deleted the selected partition.

Step 5: Finished!

Now that this is done you should see in diskmgmt that the partition is now gone and you can extend your partition as planned originally.