- Remove drive letter/mount point in Windows Disk Manager
- Right click on disk in device manager and choose uninstall (if you skip this step the plug and play manager will complain about unexpected removal)
- Connect to host using ssh/putty
- Get VMID with vimsh -ne "vmsvc/getallvms"
- Get SCSI Controller Number and Disk from properties of disk in VC
- vimsh -ne "vmsvc/device.diskremove vmid scsiControllerNumber scsiUnitNumber deleteFile"
vimsh -ne "vmsvc/device.diskremove 9999 scsi0 4 n"