none
howto programmatically remove the VHDx files of a VM? RRS feed

  • Question

  • Hi,

    Is there a way to remove  (delete and detach) the vhd files of a virtual machine using the WMI  ? Msvm_MountedStorageImage class has the detach method but this can only be used for detaching the vhdx files from the hyperv host and not from the virtual machine.

    thanks



    Monday, February 1, 2016 2:56 PM