uninstall node js and npm ubuntu

C++
sudo apt-get purge --auto-remove nodejs
Source

Also in C++: