code: public void undeployVM(String vrpId, VirtualMachine vm, ClusterComputeResource cluster) throws InvalidState, NotFound, RuntimeFault, RemoteException {
          getVimService().undeployVM(getMOR(), vrpId, vm.getMOR(), cluster.getMOR());
      }
docs: Undeploy a VM in given VRP, hub pair.
  
  @param vrpId   The unique Id of the VRP.
  @param vm      VirtualMachine
  @param cluster Cluster Object
  @throws InvalidState
  @throws NotFound
  @throws RuntimeFault
  @throws RemoteException