To uninstall go-ethereum
run the following, first start by deleting the huge blockchain off your server:
1 | geth removedb |
1 2 3 4 | [root@base go-ethereum]# geth removedb /root/.ethereum/geth/chaindata Remove this database? [y/N] y Remove this database? [y/N] y |
Delete the Data Directory
- Mac:1~/Library/Ethereum
- Linux:1~/.ethereum
- Windows:1%APPDATA%\Ethereum
Make sure you delete it recursively! Meaning make sure the keystore folder under ~/.ethereum is deleted as well so your wallet data is deleted so no one can steal. Likewise make sure you have backup of it on your local machine to receive and transfer funds.
Next let’s delete the previous symbolic link we made during installation
Here is my previous symbolic link:
ln -s /go-ethereum/build/bin/geth /usr/local/bin/geth
^ DO NOT RUN THAT, THAT IS JUST AN EXAMPLE FROM INSTALLATION
First unlink it:
1 | unlink /usr/local/bin/geth |
Then delete the rest of the installation here:
1 | rm -rf /go-ethereum |