how to uninstall in ubuntu

Shell
$ sudo apt-get purge “package-name”https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04
Source

Also in Shell: