def undeploy_vm(context, vm):
    monitor = context.getMonitoringService().getVirtualMachineMonitor()
    print "Uneploying virtual machine %s... This may take some time." \
            % vm.getInternalName()
    vm.undeploy()
    monitor.awaitCompletionUndeploy(vm)
    return refresh_vm(context, vm)
Undeploy the given virtual machine
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/virtualmachine/helper.py/undeploy_vm