Uninstall Nodejs from Ubuntu
if you wish to uninstall Nodejs from your Ubuntu system, run the command below
apt-get remove nodejs
The command will remove the package.If you want to remove both the package and the configuration files run:
apt-get purge nodejs
now you can run the command below to remove any unused files and free up to disk space
apt-get autoremove
Great! We learned how to uninstall Nodejs from Ubuntu and clean up space