install node 10 and remove 14 linux code example Example: uninstall node js and npm ubuntu sudo apt-get purge --auto-remove nodejs