To uninstall NodeJS from Ubuntu 20.04, follow these steps:
- Open a terminal window on your Ubuntu 20.04 system.
- Run the following command to remove the NodeJS package:
sudo apt-get remove nodejs
After running the above command, you may also want to remove any residual configuration files for NodeJS. To do this, run the following command:
sudo apt-get purge nodejs
Finally, you can also remove the package repository for NodeJS if you no longer need it. To do this, run the following command:
sudo apt-get remove --auto-remove nodejs
That’s it! NodeJS should now be completely uninstalled from your Ubuntu 20.04 system.
