code: func (vm *VirtualMachine) DeleteVM(ctx context.Context) error {
  	destroyTask, err := vm.Destroy(ctx)
  	if err != nil {
  		klog.Errorf("Failed to delete the VM: %q. err: %+v", vm.InventoryPath, err)
  		return err
  	}
  	return destroyTask.Wait(ctx)
  }
docs: // DeleteVM deletes the VM.