Uninstall Node.JS using Linux command line? October 4, 2022 by Tarik For Ubuntu 12.04: sudo apt-get remove nodejs This will uninstall nodejs as well as npm.