How to remove virtual drives in Windows 10

Matthew Adams
by Matthew Adams
Windows & Software Expert
Download PDF
Affiliate Disclosure

Virtual drives are virtualized hard drives that operate much the same as additional external hard disk drives with their own partitions. Although they can come in handy for virtual machines, some users might prefer to remove virtual drives when they’re no longer needed. This is how users can remove virtual drives in Windows 10.

Two Ways to Remove Virtual Drives

1. Delete Virtual Drives With Disk Management Console

  1. To delete virtual drives with the Disk Management Console, press the Windows key + R keyboard shortcut for Run.
  2. Input ‘diskmgmt.msc’ in Run and click OK to open Disk Management.The Disk Management utility windows 10 how to remove virtual drive
  3. Right-click the virtual disk listed in the Volume column and select Delete Volume.
  4. A dialog box will open suggesting that users back up data before deleting the volume. If you’re sure you don’t need anything on the virtual drive, click the Yes option.
  5. That will leave users with unallocated virtual drive space. To delete the virtual hard disk file, right-click the disk number with the unallocated space and select the Detach VHD option.
  6. Select the Delete the virtual hard disk file after removing disk option on the window that opens.
  7. Click the OK button.
  8. Some users might still see their virtual drives in File Explorer. Right-click the virtual drive in File Explorer and click Delete to erase it.

2. Delete Virtual Drives With Diskpart

  1. To delete virtual drives with Diskpart command-line utility, open the Win + X menu with its Windows key + X hotkey.
  2. Click Command Prompt (Admin) to open an elevated CP window.
  3. Enter ‘diskpart’ in the Command Prompt, and press the Return key.Diskpart windows 10 how to remove virtual drive
  4. Then select the virtual drive with this command: select vdisk file=<VHD file>. Users need to replace <VHD file> with the actual VHD file title and the drive it’s stored on as in the snapshot directly vdisk command windows 10 how to remove virtual drive
  5. Input ‘detach vdisk’ in the Command Prompt and press Enter, which will detach the virtual drive.
  6. Then close the Command Prompt.

So, users can delete their virtual drives with the Disk Management Console or Diskpart utilities. With virtual drives deleted, users will have regained some hard drive space for more essential things.

Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!