How to delete previous entries of Heimdall and Bor

  1. All you have to do is to first stop your Heimdall and Bor nodes along with the bridge and rest server.

For Linux packages :

To stop Heimdall and Bor process you can run the following commands:

Stop Heimdall: sudo service heimdalld stop

Stop Bor: sudo service bor stop or

Stop rest-server: sudo service heimdalld-rest-server stop

Stop bridge: sudo service heimdalld-bridge stop

Then you will need to delete all directories for Bor and Heimdall to make sure all remnants are removed from your machine. To do that:

Uninstall Heimdall: sudo dpkg -r matic-heimdall

Uninstall Bor: sudo dpkg -r matic-bor

Delete Heimdall: sudo rm -rf /etc/heimdall/*

Delete Bor: sudo rm -rf /etc/bor/*

For Binaries :

Stopping services:

  1. ps -aux | grep bor . Get the PID for Bor and then run the following command.
  2. sudo kill -9 PID

Stop Heimdall: pkill heimdalld

Stop Bridge: pkill heimdalld-bridge

Stop Bor: run bash stop.sh

Stop rest-server: pkill rest-server

Then you will need to delete all directories for Bor and Heimdall to make sure all remnants are removed from your machine. To do that:

Delete Heimdall: sudo rm -rf ~/.heimdalld/

Delete Bor: sudo rm -rf ~/.bor

Once you have done these steps, you can then proceed to set up your node by following the same steps as before with the new testnet:

Linux packages - https://docs.matic.network/docs/validate/counter-stake-stage-2/linux-package-installation

Binaries - https://docs.matic.network/docs/validate/counter-stake-stage-2/running-with-binaries