added delete_vm() function for terminating vms