I tried the answer here Removed golang but go command still works?, but it didn\'t work (I can still run go)
Currently, when I run which go I see this o
which go
Use this command to uninstall Golang for Ubuntu.
This will remove just the golang-go package itself.
sudo apt-get remove golang-go
Uninstall golang-go and its dependencies:
sudo apt-get remove --auto-remove golang-go