uninstall all versions of node on ubuntu code example Example: uninstall node js and npm ubuntu sudo apt-get purge --auto-remove nodejs