uninstall npm and node in ubuntu terminal code example Example: uninstall node js and npm ubuntu sudo apt-get purge --auto-remove nodejs