{"id":18368,"date":"2025-05-13T09:28:50","date_gmt":"2025-05-13T03:58:50","guid":{"rendered":"https:\/\/www.softsuave.com\/blog\/?p=18368"},"modified":"2025-10-30T15:00:59","modified_gmt":"2025-10-30T09:30:59","slug":"how-to-delete-nodejs","status":"publish","type":"post","link":"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/","title":{"rendered":"How to Uninstall Node js: Best Practices for a Clean Uninstall"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-flat ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Preparing_for_Uninstallation\" >Preparing for Uninstallation<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#How_to_Uninstall_Node_in_Windows\" >How to Uninstall Node in Windows<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Uninstall_Nodejs_Ubuntu\" >Uninstall Node.js Ubuntu<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Step_1_Uninstall_Nodejs_and_npm_via_APT\" >Step 1: Uninstall Nodejs and npm via APT<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Step_2_Remove_Residual_Files_and_Directories\" >Step 2: Remove Residual Files and Directories<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Step_3_Remove_Nodejs_APT_Source_Entries\" >Step 3: Remove Node.js APT Source Entries<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Step_4_Uninstall_Nodejs_Installed_via_Snap\" >Step 4: Uninstall Nodejs Installed via Snap<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Step_5_Uninstall_Nodejs_Installed_via_NVM\" >Step 5: Uninstall Node.js Installed via NVM<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Step_6_Verify_Uninstallation\" >Step 6: Verify Uninstallation<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Uninstallation_Steps_for_Linux_Ubuntu\" >Uninstallation Steps for Linux (Ubuntu)<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Uninstallation_Steps_for_macOS\" >Uninstallation Steps for macOS<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Verifying_Complete_Uninstallation\" >Verifying Complete Uninstallation<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Troubleshooting\" >Troubleshooting<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n<div class=\"wp-block-columns has-border-color is-layout-flex wp-container-core-columns-is-layout-29cf1a26 wp-block-columns-is-layout-flex\" style=\"border-color:#ff0042;border-width:3px;margin-top:var(--wp--preset--spacing--20);margin-bottom:var(--wp--preset--spacing--20);padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\">\n<div class=\"wp-block-column has-border-color has-ast-global-color-5-border-color has-ast-global-color-6-background-color has-background is-layout-flow wp-container-core-column-is-layout-334757f1 wp-block-column-is-layout-flow\" style=\"border-width:12px;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)\">\n<p><strong>Key Takeaways<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Uninstalling Node.js requires careful attention to ensure that no residual files or processes remain.<\/li>\n\n\n\n<li>This guide offers best practices for <strong>how to Unistall NodeJS<\/strong> cleanly across Windows, Linux (Ubuntu), and macOS.<\/li>\n\n\n\n<li>By following these steps, you will completely remove Node.js, npm, environment settings, and any cached data from your computer without leaving anything behind.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-0806ab5c wp-block-columns-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)\">\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-22223934 wp-block-column-is-layout-flow\" style=\"flex-basis:90%\">\n<p>It is important to uninstall Node.js properly to maintain system stability, free up space, or prepare for a fresh installation. You may need to uninstall Node.js when switching versions, troubleshooting issues, or clearing system clutter. Knowing <strong>how to Uninstall Node JS<\/strong> correctly ensures that all components, including npm, are removed without leaving behind residual files or affecting future installations. And by the way, if you\u2019re uninstalling because you&#8217;re looking to <a href=\"https:\/\/www.softsuave.com\/hire-nodejs-developers\">hire remote NodeJS developer<\/a>, we have the right resources to scale up your team!<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:90%\">\n<h2 class=\"wp-block-heading\" id=\"h-preparing-for-uninstallation\" style=\"text-transform:none\"><span class=\"ez-toc-section\" id=\"Preparing_for_Uninstallation\"><\/span>Preparing for Uninstallation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before you uninstall Node.js, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Back-Up Your Files:<\/strong> Save any important data or project files related to Node.js, including configurations within your <strong><a href=\"https:\/\/www.softsuave.com\/blog\/ide-node-js-development\/\">IDE Node.js<\/a><\/strong> setup if you&#8217;re using one. This helps preserve settings you may want to reuse later.<\/li>\n\n\n\n<li><strong>Check Versions:<\/strong> Make sure you know which versions of Node.js and npm are installed.\n<ul class=\"wp-block-list\">\n<li><strong>How to Check:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Open the terminal or command prompt.<\/li>\n\n\n\n<li>Type<strong> node -v<\/strong> and press Enter to see the Node.js version.<\/li>\n\n\n\n<li>Type <strong>npm -v<\/strong> and press Enter to see the npm version.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Proceed with Uninstallation:<\/strong> Once you have backed up your files and noted the versions, you can safely uninstall Node.js.<\/li>\n<\/ol>\n\n\n\n<p>This ensures you don&#8217;t lose important information and remove the correct versions from your system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-uninstall-node-in-windows\"><span class=\"ez-toc-section\" id=\"How_to_Uninstall_Node_in_Windows\"><\/span>How to Uninstall Node in Windows<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Uninstalling <a href=\"https:\/\/react.dev\/\">Node.js<\/a> on Windows involves a lot of steps to ensure that all components are completely removed. Make sure to follow each step to avoid leaving behind any residual files.<\/p>\n\n\n\n<p><strong>Step 1: Clear npm Cache<br><\/strong>To begin, clear all cached data stored by npm using the command <strong>npm cache clean &#8211;force<\/strong>. This ensures no leftover cache files interfere with future installations or affect system performance.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clear-npm-Cache-1024x571.webp\" alt=\"\" class=\"wp-image-18424\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clear-npm-Cache-1024x571.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clear-npm-Cache-300x167.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clear-npm-Cache-768x429.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clear-npm-Cache.webp 1113w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 2: Verify Cache Clearance<br><\/strong>Once the cache is removed, make sure to run <strong>npm cache verify<\/strong> to confirm.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Cache-Clearance-1024x572.webp\" alt=\"\" class=\"wp-image-18426\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Cache-Clearance-1024x572.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Cache-Clearance-300x168.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Cache-Clearance-768x429.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Cache-Clearance.webp 1111w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 3: Uninstall Node.js Application<br><\/strong>To uninstall Node.js:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the Control Panel.<\/li>\n\n\n\n<li>Click on &#8220;Programs and Features.&#8221;<\/li>\n\n\n\n<li>Find and select &#8220;Node.js&#8221; from the list.<\/li>\n\n\n\n<li>Click the &#8220;Uninstall&#8221; button.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"543\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Application-1024x543.webp\" alt=\"\" class=\"wp-image-18427\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Application-1024x543.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Application-300x159.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Application-768x407.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Application-1536x815.webp 1536w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Application.webp 1599w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This will remove Node.js from your computer.<\/p>\n\n\n\n<p><strong>Step 4: End Node.js Processes<\/strong><strong><br><\/strong>Open Task Manager (Ctrl + Shift + Esc) and check for any Node.js processes that might be running. If any are active, end them to prevent interference during uninstallation. Alternatively, restarting the system can help clear all Node.js processes.<\/p>\n\n\n\n<p><strong>Step 5: Remove Node.js Environment Variables<\/strong><\/p>\n\n\n\n<p>Open System Properties.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"586\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-Environment-Variables.webp\" alt=\"\" class=\"wp-image-18428\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-Environment-Variables.webp 612w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-Environment-Variables-300x287.webp 300w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Go to the Advanced tab and click on\u202f\u2018Environment Variables\u2019.<\/p>\n\n\n\n<p>Find and remove any Node.js paths, such as<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Program Files (x86)\\Nodejs\nC:\\Program Files\\Nodejs\nC:\\Users\\{User}\\AppData\\Roaming\\npm\nC:\\Users\\{User}\\AppData\\Roaming\\npm-cache\nC:\\Users\\{User}\\.npmrc\nC:\\Users\\{User}\\package.json\nC:\\Users\\{User}\\package-lock.json\nC:\\Users\\{User}\\AppData\\Local\\Temp\\npm-*\n<\/code><\/pre>\n\n\n\n<p>To access the directories, type <strong>appdata<\/strong> in the Run dialog <strong>(Win + R)<\/strong>, then navigate to Roaming.<\/p>\n\n\n\n<p><strong>Step 6: Apply Changes<br><\/strong>After removing the environment variables, ensure all changes are saved by clicking &#8220;OK&#8221; to close each dialog box.<\/p>\n\n\n\n<p><strong>Step 7: Verify Uninstallation<br><\/strong>Finally, make sure Node.js is fully removed by opening the command prompt and typing where node. If any Node.js directories still exist, manually navigate to the paths and unistall them.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1024x571.webp\" alt=\"\" class=\"wp-image-18429\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1024x571.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-300x167.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-768x428.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation.webp 1117w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-uninstall-node-js-ubuntu\"><span class=\"ez-toc-section\" id=\"Uninstall_Nodejs_Ubuntu\"><\/span>Uninstall Node.js Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-1-uninstall-nodejs-and-npm-via-apt\"><span class=\"ez-toc-section\" id=\"Step_1_Uninstall_Nodejs_and_npm_via_APT\"><\/span>Step 1: Uninstall Nodejs and npm via APT<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you installed Node.js using Ubuntu&#8217;s package manager:<\/p>\n\n\n\n<p><strong>Command:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get purge nodejs npm\nsudo apt-get autoremove<\/code><\/pre>\n\n\n\n<p><strong>&nbsp;Explanation:<\/strong><\/p>\n\n\n\n<p>This command removes Node.js, npm, and their associated configuration files. The autoremove command cleans up any unused dependencies.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"96\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-and-npm-via-APT-1-1024x96.webp\" alt=\"Uninstall Node.js and npm via APT\" class=\"wp-image-20919\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-and-npm-via-APT-1-1024x96.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-and-npm-via-APT-1-300x28.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-and-npm-via-APT-1-768x72.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-and-npm-via-APT-1.webp 1455w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-2-remove-residual-files-and-directories\"><span class=\"ez-toc-section\" id=\"Step_2_Remove_Residual_Files_and_Directories\"><\/span>Step 2: Remove Residual Files and Directories<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Command:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm -rf ~\/.npm ~\/.node-gyp\nsudo rm -rf \/usr\/local\/lib\/node_modules\nsudo rm -rf \/usr\/local\/bin\/node \/usr\/local\/bin\/npm<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>These commands delete user-specific and system-wide residual files and directories related to Node.js and npm.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"119\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-and-Directories-1-1024x119.webp\" alt=\"Remove Residual Files and Directories\" class=\"wp-image-20911\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-and-Directories-1-1024x119.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-and-Directories-1-300x35.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-and-Directories-1-768x89.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-and-Directories-1.webp 1458w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-3-remove-node-js-apt-source-entries\"><span class=\"ez-toc-section\" id=\"Step_3_Remove_Nodejs_APT_Source_Entries\"><\/span>Step 3: Remove Node.js APT Source Entries<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Command:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm \/etc\/apt\/sources.list.d\/nodesource.list\nsudo apt-get update<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>This removes the NodeSource repository entry from APT sources and updates the package list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"217\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM-1.webp\" alt=\"\" class=\"wp-image-20914\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM-1.webp 647w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM-1-300x101.webp 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-4-uninstall-nodejs-installed-via-snap\"><span class=\"ez-toc-section\" id=\"Step_4_Uninstall_Nodejs_Installed_via_Snap\"><\/span>Step 4: Uninstall Nodejs Installed via Snap<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Command:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo snap remove node<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>If Node.js was installed using Snap, this command will remove it.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"67\" data-id=\"20917\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-Snap-1024x67.webp\" alt=\"\" class=\"wp-image-20917\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-Snap-1024x67.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-Snap-300x20.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-Snap-768x50.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-Snap.webp 1467w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-5-uninstall-node-js-installed-via-nvm\"><span class=\"ez-toc-section\" id=\"Step_5_Uninstall_Nodejs_Installed_via_NVM\"><\/span>Step 5: Uninstall Node.js Installed via NVM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Command:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nvm ls\nnvm uninstall &lt;version&gt;\nrm -rf ~\/.nvm<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>These commands list installed Node.js versions via NVM, uninstall a specific version, and remove NVM itself.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"67\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM-1024x67.webp\" alt=\"Uninstall Node.js Installed via NVM\" class=\"wp-image-20909\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM-1024x67.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM-300x20.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM-768x50.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM.webp 1467w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-6-verify-uninstallation\"><span class=\"ez-toc-section\" id=\"Step_6_Verify_Uninstallation\"><\/span>Step 6: Verify Uninstallation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Command:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>node -v\nnpm -v<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Running these commands should result in errors indicating that Node.js and npm are no longer installed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"127\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1-1024x127.webp\" alt=\"\" class=\"wp-image-20918\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1-1024x127.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1-300x37.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1-768x96.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1.webp 1422w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-uninstallation-steps-for-linux-ubuntu\"><span class=\"ez-toc-section\" id=\"Uninstallation_Steps_for_Linux_Ubuntu\"><\/span>Uninstallation Steps for Linux (Ubuntu)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This section outlines the steps to uninstall Node.js on Ubuntu systems. Carefully execute each step to ensure a thorough uninstallation.<\/p>\n\n\n\n<p><strong>Step 1: Remove Node.js<br><\/strong>To uninstall Node.js on Ubuntu, open the terminal and enter:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-1024x469.webp\" alt=\"\" class=\"wp-image-18409\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-1024x469.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-300x137.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-768x352.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js.webp 1480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get remove nodejs<\/code><\/pre>\n\n\n\n<p><strong>Step 2: Remove npm<br><\/strong>To uninstall npm and Node.js, enter this command in the terminal:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"237\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-npm-1024x237.webp\" alt=\"\" class=\"wp-image-18408\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-npm-1024x237.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-npm-300x69.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-npm-768x178.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-npm.webp 1202w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get remove npm<\/code><\/pre>\n\n\n\n<p>This will remove both npm and Node.js from your system.<\/p>\n\n\n\n<p><strong>Step 3: Clean Up Residual Files<br><\/strong>Follow Step 7 from the Windows section. Check for residual folders and files by running whereis node. Any remaining files related to Node.js should be manually uninstall to ensure a clean removal.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-uninstallation-steps-for-macos\" style=\"text-transform:none\"><span class=\"ez-toc-section\" id=\"Uninstallation_Steps_for_macOS\"><\/span>Uninstallation Steps for macOS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Uninstalling Node.js on macOS can be done in two ways- using Homebrew or manually unistalling files. This section covers both methods to ensure a thorough removal.<\/p>\n\n\n\n<p><strong>Step 1: Remove Node.js and npm<br><\/strong>To uninstall Node.js installed with Homebrew, open your terminal and run:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-and-npm-1024x546.webp\" alt=\"\" class=\"wp-image-18398\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-and-npm-1024x546.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-and-npm-300x160.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-and-npm-768x409.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-and-npm-1536x819.webp 1536w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-and-npm.webp 1794w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew uninstall node<\/code><\/pre>\n\n\n\n<p>If you installed Node.js manually, you can remove it and npm by deleting these folders:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/local\/bin\/node\n\/usr\/local\/lib\/node_modules\n<\/code><\/pre>\n\n\n\n<p>Simply navigate to these directories and delete them to complete the uninstallation.<\/p>\n\n\n\n<p><strong>Step 2: Remove Residual Files<br><\/strong>Type the following commands to delete any leftover Node.js folders after opening the terminal:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-1024x546.webp\" alt=\"\" class=\"wp-image-18399\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-1024x546.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-300x160.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-768x409.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-1536x819.webp 1536w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files.webp 1794w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/usr\/local\/bin\/node\nrm -rf \/usr\/local\/bin\/node_modules\nrm -rf ~\/.npm\nrm -rf ~\/.node-gyp\n<\/code><\/pre>\n\n\n\n<p><strong>Step 3: Clean Up Environment Variables<br><\/strong>Check your shell profile files (e.g., .<strong>bash_profile, .zshrc<\/strong>) for any environment variables related to Node.js. Edit the files and remove any Node.js references to ensure no environment variables remain.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"632\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clean-Up-Environment-Variables-1024x632.webp\" alt=\"\" class=\"wp-image-18400\" srcset=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clean-Up-Environment-Variables-1024x632.webp 1024w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clean-Up-Environment-Variables-300x185.webp 300w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clean-Up-Environment-Variables-768x474.webp 768w, https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clean-Up-Environment-Variables.webp 1388w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-verifying-complete-uninstallation\"><span class=\"ez-toc-section\" id=\"Verifying_Complete_Uninstallation\"><\/span>Verifying Complete Uninstallation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To ensure a complete uninstallation, use system commands such as where node (on Windows) or where is node (on Linux) to check for any remaining Node.js files or directories. Manually inspect and delete any residual folders or environment variables. These steps are important to make sure Node.js is completely removed from your computer. Now that you have Unistall NodeJS maybe try switching to Python for your web app development needs.\u00a0<\/p>\n\n\n\n<p>As you clean up your system, you might explore advanced use cases like <a href=\"https:\/\/www.softsuave.com\/blog\/node-js-mobile-development\/\">node js app development<\/a>, especially if you&#8217;re considering a fresh stack for mobile or full-stack applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-troubleshooting\"><span class=\"ez-toc-section\" id=\"Troubleshooting\"><\/span>Troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Issues can easily arise during the uninstallation process. For example, leftover files may prevent a clean uninstall or certain processes may remain active. If you encounter problems, use Task Manager (Windows) or Terminal (Linux\/macOS) to terminate any Node.js processes and manually remove residual files.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In this guide, we\u2019ve discussed <strong>how to Uninstall  Node JS<\/strong> from Windows, Linux, and macOS systems, covering all the necessary steps to ensure a clean uninstallation. Following these best practices will leave your system free from residual files and processes, keeping it in optimal condition for future development needs. And if you ever change your mind, Soft Suave <a href=\"https:\/\/www.softsuave.com\/mobile-application-development-company\">app development services<\/a> are always here to help you with your next big project!<\/p>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to delete NodeJS with best practices for a clean uninstall, ensuring no leftover files. Follow these simple steps for a complete removal process.<\/p>\n","protected":false},"author":3,"featured_media":18374,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[92,7],"tags":[],"class_list":["post-18368","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-it-solutions","category-web-solutions"],"_links":{"self":[{"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/posts\/18368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/comments?post=18368"}],"version-history":[{"count":0,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/posts\/18368\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/media\/18374"}],"wp:attachment":[{"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/media?parent=18368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/categories?post=18368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/tags?post=18368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}