Remove your validator

If you need to remove your validator from your server, you will have to complete a number of manual steps in your CLI. In the future, an Ansible playbook will be developed to automate this process.

  1. Stop and disable the validator service:

systemctl stop solana-validator && systemctl disable solana-validator
  1. Remove the configuration and service files:

rm -rf /etc/default/solana-validator && rm -rf /etc/sv_manager/sv_manager.conf && rm -rf /etc/systemd/system/solana-validator
  1. Remove the Telegraf service:

apt purge telegraf
  1. Stop and remove the Docker container running the Agent:

docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)
  1. Remove the Solana directory:

rm -rf /home/solana/
  1. Remove the mount points:

rm -rf /mnt/solana/log && rm -rf /mnt/solana/ledger && rm -rf /mnt/solana/snapshots
  1. Remove the communication channel, following the steps in Remove the communication channel.

Last updated