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: Go to CS-2001/bor and then run, bash [stop.sh](<http://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 ~/.heimdall/

Delete Bor: sudo rm -rm ./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/staking/linux-package-installation/

Binaries - https://docs.matic.network/staking/running-with-binaries/