Uninstalling Golang in Ubunut

Uninstalling Golang in Ubunut

If you installed go-lang through get-adpt then to unsinstall use this command:

sudo apt-get purge golang-go

If you installed golang through source code then remove the folder go and gopkg which are located /usr/local then also remove the environment variables at ~/.bashrc