Skip to main content
Remove every byte mxnode wrote. Stop and disable units, delete workdirs, wipe the binstore, drop state and config.

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

If state.toml is missing but managed directories still exist (e.g. partial install), cleanup still works:
It scans for <custom_home>/elrond-{nodes,utils,proxy} and the mxnode footprint, removes whatever it finds, and exits cleanly.

What cleanup does not touch

  • The mxnode binary itself (use sudo rm /usr/local/bin/mxnode to 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

When to use what