def destroy
      #disks = vm_object.config.hardware.device.grep(RbVmomi::VIM::VirtualDisk)
      unless host.free_license
        vm_object.Destroy_Task.wait_for_completion
      else
        host.remote_command "vim-cmd vmsvc/power.off #{vmid}"
        host.remote_command "vim-cmd vmsvc/destroy #{vmid}"
      end
    end
def destroy
      #disks = vm_object.config.hardware.device.grep(RbVmomi::VIM::VirtualDisk)
      unless host.free_license
        vm_object.Destroy_Task.wait_for_completion
      else
        host.remote_command "vim-cmd vmsvc/power.off #{vmid}"
        host.remote_command "vim-cmd vmsvc/destroy #{vmid}"
      end
    end
def destroy #disks = vm_object.config.hardware.device.grep(RbVmomi::VIM::VirtualDisk) unless host . free_license vm_object . Destroy_Task . wait_for_completion else host . remote_command "vim-cmd vmsvc/power.off #{vmid}" host . remote_command "vim-cmd vmsvc/destroy #{vmid}" end end
Destroy the VirtualMaching removing it from the inventory
 and deleting the disk files
Destroy the VirtualMaching removing it from the inventory and deleting the disk files