Shortest commands
--yes is required regardless — cleanup is destructive enough that it requires for explicit intent.
Options
What gets removed
Sample dry-run
Cleanup with no state
Ifstate.toml is missing but managed directories still exist (e.g. partial install), cleanup still works:
<custom_home>/elrond-{nodes,utils,proxy} and the mxnode footprint, removes whatever it finds, and exits cleanly.
What cleanup does not touch
- The
mxnodebinary itself (usesudo rm /usr/local/bin/mxnodeto also remove the CLI) /usr/local/go/(even if mxnode installed it)- Other validator zips parked in
<node_keys>outside the workdirs - Apt packages mxnode installed during bootstrap (
build-essential,git, etc.) — those are system tools

