como deletar node js linux

To delete Node.js on Linux, follow these steps:

  1. Open a terminal window.
  2. Run the following command to remove the Node.js package:
sudo apt-get remove nodejs
  1. To remove any configuration files associated with Node.js, run the following command:
sudo apt-get purge nodejs
  1. Additionally, you may want to remove any npm packages that were installed. You can do this by running the command:
sudo apt-get remove npm

This will remove Node.js and npm from your Linux system.