title: vSphere SDK how to delete VirtualMachine in JAVA
body: <p>I'm struggeling to find a way of deleting VirtualMachine by using vSphere SDK JAVA API, but seems like nothing works. As far as i know, i need to get an instance of VirtualMachine ManagedObject and call Destroy_Task() , but until now I'm only able to get ManagedObjectReference of virtual machine by using PropertyCollector which is not helpful for this specific task.</p>
  
  <p>I cannot find any example on the internet that would show how to do it, hope someone here can help me.</p>
  
  <p>THanks in advance</p>