# cloudhv_vm_delete

Delete a Cloud Hypervisor virtual machine.

```rhai
cloudhv_vm_delete(id, delete_disks) -> ()
```

## Parameters

- `id` (string): VM identifier
- `delete_disks` (bool): Also delete disk images if true

## Returns

Returns nothing on success, throws error on failure.

## Examples

```rhai
// Delete VM but keep disks
cloudhv_vm_delete("myvm", false);

// Delete VM and all associated disks
cloudhv_vm_delete("myvm", true);
```

## Notes

- VM must be stopped before deletion
- If delete_disks=true, all disk images are permanently removed
- VM configuration is removed from the system
- This operation is irreversible
