135136137138139140141142143144145
if (vsphereServer.isVmPoweredOn(existingVm)) { vsphereServer.powerOffVm(existingVm); } vsphereServer.destroyVm(existingVm); } else { System.out.println("use --overwrite true to overwrite"); System.exit(1); }