ubuntu how to remove a version of node.js code example Example: uninstall node js and npm ubuntu sudo apt-get purge --auto-remove nodejs