How to uninstall GVM

pestrella picture pestrella · Feb 14, 2013 · Viewed 19.7k times · Source

I use GVM to manage my Groovy/Grails environment.

How do I uninstall GVM and all the candidates currently installed?

I suspect one would simply just delete the ~/.gvm directory. Surprisingly the GVM website doesn't seem to mention how to do this, nor is there documentation to confirm how this is done.

Answer

tim_yates picture tim_yates · Feb 14, 2013

Deleting the ~/.gvm directory and removing the lines:

#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
[[ -s "~/.gvm/bin/gvm-init.sh" && ! $(which gvm-init.sh) ]] && source "~/.gvm/bin/gvm-init.sh"

From ~/.bash_profile (or ~/.profile), ~/.bashrc and ~/.zshrc should do it (assuming a default install)