Reset or destroy a VM

Destroy

./ztd down

Removes the VM and its disk. On a remote backend, prefix with the target:

TARGET=proxmox ./ztd down

Reset to a clean state

To throw away a VM and recreate it from clean cloud-init in one step:

./ztd reset

This is down followed by up. Use it when an agent run has left the VM in a state you don’t trust and you want a known-good box again — which, given ZTD’s cattle model, is the normal way to “fix” a VM.

Check what’s running first

./ztd ip       # the current VM's IP, or an error if none is up

A note on teardown

In Phase 0, teardown is manual — there is no auto-destroy or TTL yet. Always ./ztd down when you’re finished so you don’t leave VMs (and, on cloud backends, billable instances) running. Automatic lifecycle is on the roadmap.