<!-- CLEANUP_FILTER_FILE_LOADED -->{"id":32234,"date":"2026-07-09T12:48:16","date_gmt":"2026-07-09T07:18:16","guid":{"rendered":"https:\/\/www.softsuave.com\/blog\/?p=32234"},"modified":"2026-07-09T12:48:31","modified_gmt":"2026-07-09T07:18:31","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 Completely on Windows, Mac, and Linux"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 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_Nodejs_Completely_on_Windows_1011\" >How to Uninstall Node.js Completely on Windows 10\/11<\/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\/#How_to_Uninstall_Nodejs_on_UbuntuLinux_Organize_by_APT_NodeSource_Snap_NVM_manualsource_install\" >How to Uninstall Node.js on Ubuntu\/Linux. Organize by APT, NodeSource, Snap, NVM, manual\/source install.<\/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\/#How_to_Uninstall_Nodejs_Completely_on_macOS\" >How to Uninstall Node.js Completely on 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\/#Which_Nodejs_Uninstall_Method_Should_You_Use\" >Which Node.js Uninstall Method Should You Use?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.softsuave.com\/blog\/how-to-delete-nodejs\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text css=&#8221;&#8221;]<\/p>\r\n<div class=\"wp-block-columns has-border-color\" style=\"border-color: #ff0042; border-width: 3px; margin-top: var(--wp--preset--spacing--20); margin-bottom: var(--wp--preset--spacing--20); padding: 0 var(--wp--preset--spacing--20) 0 var(--wp--preset--spacing--20);\">\r\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: var(--wp--preset--spacing--20);\">\r\n<p><strong>Key Takeaways<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li style=\"list-style-type: none;\">\r\n<ul class=\"wp-block-list\">\r\n<li>Uninstalling Node.js requires careful attention to ensure that no residual files or processes remain.<\/li>\r\n\r\n\r\n\r\n<li>This guide explains how to uninstall Node.js and npm completely from Windows 10\/11, macOS, Ubuntu, and Linux based on how Node.js was installed.<\/li>\r\n\r\n\r\n\r\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>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/div>\r\n<!-- \/wp:post-content -->\r\n<p>&nbsp;<\/p>\r\n<!-- wp:columns {\"style\":{\"spacing\":{\"margin\":{\"top\":\"var:preset|spacing|30\",\"bottom\":\"var:preset|spacing|30\"}}}} -->\r\n<div class=\"wp-block-columns\" style=\"margin-top: var(--wp--preset--spacing--30); margin-bottom: var(--wp--preset--spacing--30);\"><!-- wp:column {\"width\":\"90%\",\"style\":{\"spacing\":{\"blockGap\":\"var:preset|spacing|20\"}}} -->\r\n<div class=\"wp-block-column\" style=\"flex-basis: 90%;\">\r\n<p>\u00a0To uninstall Node.js completely, first check how it was installed, then remove the app\/package, npm cache, global modules, PATH entries, and version-manager files. 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.<span style=\"font-size: 16px;\">\u00a0<\/span><\/p>\r\n<\/div>\r\n<\/div>\r\n<!-- wp:columns -->\r\n<div class=\"wp-block-columns\"><!-- wp:column {\"width\":\"90%\"} -->\r\n<div class=\"wp-block-column\" style=\"flex-basis: 90%;\"><!-- wp:heading {\"style\":{\"typography\":{\"textTransform\":\"none\"}}} -->\r\n<h2 id=\"h-preparing-for-uninstallation\" class=\"wp-block-heading\" 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>\r\n<p><!-- \/wp:heading -->Before You Start: Check Version, Path, Install Method, and Global Packages.<\/p>\r\n<!-- \/wp:column -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol class=\"wp-block-list\">\r\n<li style=\"list-style-type: none;\">\r\n<ol class=\"wp-block-list\"><!-- wp:list-item -->\r\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>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Check Versions:<\/strong> Make sure you know which versions of Node.js and npm are installed.<!-- wp:list --><br \/>\r\n<ul class=\"wp-block-list\">\r\n<li style=\"list-style-type: none;\">\r\n<ul class=\"wp-block-list\"><!-- wp:list-item -->\r\n<li><strong>How to Check:<\/strong><!-- wp:list --><br \/>\r\n<ul class=\"wp-block-list\">\r\n<li style=\"list-style-type: none;\">\r\n<ul class=\"wp-block-list\"><!-- wp:list-item -->\r\n<li>Open the terminal or command prompt.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li>Type<strong> node -v<\/strong> and press Enter to see the Node.js version.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li>Type <strong>npm -v<\/strong> and press Enter to see the npm version.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<!-- \/wp:list-item --><!-- \/wp:list --><\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<!-- \/wp:list-item --><!-- \/wp:list --><\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\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>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<!-- \/wp:list-item --><!-- \/wp:list -->\r\n<p><!-- wp:paragraph -->This ensures you don&#8217;t lose important information and remove the correct versions from your system.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 id=\"h-how-to-uninstall-node-in-windows\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Uninstall_Nodejs_Completely_on_Windows_1011\"><\/span>How to Uninstall Node.js Completely on Windows 10\/11<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph -->Uninstalling Node.js 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>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><strong>Step 1: Clear npm Cache<br \/><\/strong>To begin, clear all cached data stored by npm using the command <strong>npm cache clean force<\/strong>. This ensures no leftover cache files interfere with future installations or affect system performance.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18424,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" class=\"wp-image-18424\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clear-npm-Cache-1024x571.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n<p><!-- wp:paragraph --><strong>Step 2: Verify Cache Clearance<br \/><\/strong>Once the cache is removed, make sure to run <strong>npm cache verify<\/strong> to confirm.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18426,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" class=\"wp-image-18426\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Cache-Clearance-1024x572.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n<p><!-- wp:paragraph --><strong>Step 3: Uninstall Node.js Application<br \/><\/strong>To uninstall Node.js:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol class=\"wp-block-list\">\r\n<li style=\"list-style-type: none;\">\r\n<ol class=\"wp-block-list\"><!-- wp:list-item -->\r\n<li>Open the Control Panel.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li>Click on &#8220;Programs and Features.&#8221;<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li>Find and select &#8220;Node.js&#8221; from the list.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li>Click the &#8220;Uninstall&#8221; button.<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<!-- \/wp:list-item --><!-- \/wp:list -->\r\n\r\n<!-- wp:image {\"id\":18427,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"543\" class=\"wp-image-18427\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Application-1024x543.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n<p><!-- wp:paragraph -->This will remove Node.js from your computer.<\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><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>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><strong>Step 5: Remove Node.js Environment Variables<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph -->Open System Properties.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18428,\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"586\" class=\"wp-image-18428\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-Environment-Variables.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n<p><!-- wp:paragraph -->Go to the Advanced tab and click on\u202f\u2018Environment Variables\u2019.<\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph -->Find and remove any Node.js paths, such as<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>C:\\Program Files (x86)\\Nodejs\r\nC:\\Program Files\\Nodejs\r\nC:\\Users\\{User}\\AppData\\Roaming\\npm\r\nC:\\Users\\{User}\\AppData\\Roaming\\npm-cache\r\nC:\\Users\\{User}\\.npmrc\r\nC:\\Users\\{User}\\package.json\r\nC:\\Users\\{User}\\package-lock.json\r\nC:\\Users\\{User}\\AppData\\Local\\Temp\\npm-*\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph -->To access the directories, type <strong>appdata<\/strong> in the Run dialog <strong>(Win + R)<\/strong>, then navigate to Roaming.<\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><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>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><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.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18429,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" class=\"wp-image-18429\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1024x571.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n\r\n<!-- wp:heading -->\r\n<h2 id=\"h-uninstall-node-js-ubuntu\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Uninstall_Nodejs_on_UbuntuLinux_Organize_by_APT_NodeSource_Snap_NVM_manualsource_install\"><\/span>How to Uninstall Node.js on Ubuntu\/Linux. Organize by APT, NodeSource, Snap, NVM, manual\/source install.<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 id=\"h-step-1-uninstall-nodejs-and-npm-via-apt\" class=\"wp-block-heading\"><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>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph -->If you installed Node.js using Ubuntu&#8217;s package manager:<\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><strong>Command:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>sudo apt-get purge nodejs npm\r\nsudo apt-get autoremove<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph --><strong>\u00a0Explanation:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph -->This command removes Node.js, npm, and their associated configuration files. The autoremove command cleans up any unused dependencies.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":20919,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"96\" class=\"wp-image-20919\" 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\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 id=\"h-step-2-remove-residual-files-and-directories\" class=\"wp-block-heading\"><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>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph --><strong>Command:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>sudo rm -rf ~\/.npm ~\/.node-gyp\r\nsudo rm -rf \/usr\/local\/lib\/node_modules\r\nsudo rm -rf \/usr\/local\/bin\/node \/usr\/local\/bin\/npm<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph --><strong>Explanation:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph -->These commands delete user-specific and system-wide residual files and directories related to Node.js and npm.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":20911,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"119\" class=\"wp-image-20911\" 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\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 id=\"h-step-3-remove-node-js-apt-source-entries\" class=\"wp-block-heading\"><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>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph --><strong>Command:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>sudo rm \/etc\/apt\/sources.list.d\/nodesource.list\r\nsudo apt-get update<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph --><strong>Explanation:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph -->This removes the NodeSource repository entry from APT sources and updates the package list.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":20914,\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"217\" class=\"wp-image-20914\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-NVM-1.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 id=\"h-step-4-uninstall-nodejs-installed-via-snap\" class=\"wp-block-heading\"><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>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph --><strong>Command:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>sudo snap remove node<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph --><strong>Explanation:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph -->If Node.js was installed using Snap, this command will remove it.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:gallery {\"linkTo\":\"none\"} -->\r\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped\"><!-- wp:image {\"id\":20917,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"67\" class=\"wp-image-20917\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Uninstall-Node.js-Installed-via-Snap-1024x67.webp\" alt=\"\" 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>\r\n<!-- \/wp:image --><\/figure>\r\n<!-- \/wp:gallery -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 id=\"h-step-5-uninstall-node-js-installed-via-nvm\" class=\"wp-block-heading\"><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>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph --><strong>Command:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>nvm ls\r\nnvm uninstall &lt;version&gt;\r\nrm -rf ~\/.nvm<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph --><strong>Explanation:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph -->These commands list installed Node.js versions via NVM, uninstall a specific version, and remove NVM itself.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":20909,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"67\" class=\"wp-image-20909\" 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\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 id=\"h-step-6-verify-uninstallation\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_6_Verify_Uninstallation\"><\/span>Step 6: Verify Uninstallation<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph --><strong>Command:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>node -v\r\nnpm -v<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph --><strong>Explanation:<\/strong><\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph -->Running these commands should result in errors indicating that Node.js and npm are no longer installed.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":20918,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"127\" class=\"wp-image-20918\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Verify-Uninstallation-1-1024x127.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 id=\"h-uninstallation-steps-for-linux-ubuntu\" class=\"wp-block-heading\"><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>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph -->This section outlines the steps to uninstall Node.js on Ubuntu systems. Carefully execute each step to ensure a thorough uninstallation.<\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><strong>Step 1: Remove Node.js<br \/><\/strong>To uninstall Node.js on Ubuntu, open the terminal and enter:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18409,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" class=\"wp-image-18409\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-1024x469.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>sudo apt-get remove nodejs<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph --><strong>Step 2: Remove npm<br \/><\/strong>To uninstall npm and Node.js, enter this command in the terminal:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18408,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"237\" class=\"wp-image-18408\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-npm-1024x237.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>sudo apt-get remove npm<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph -->This will remove both npm and Node.js from your system.<\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><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>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3,\"style\":{\"typography\":{\"textTransform\":\"none\"}}} -->\r\n<h3 id=\"h-uninstallation-steps-for-macos\" class=\"wp-block-heading\" style=\"text-transform: none;\"><span class=\"ez-toc-section\" id=\"How_to_Uninstall_Nodejs_Completely_on_macOS\"><\/span>How to Uninstall Node.js Completely on macOS<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph -->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>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><strong>Step 1: Remove Node.js and npm<br \/><\/strong>To uninstall Node.js installed with Homebrew, open your terminal and run:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18398,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" class=\"wp-image-18398\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Node.js-and-npm-1024x546.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>brew uninstall node<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph -->If you installed Node.js manually, you can remove it and npm by deleting these folders:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>\/usr\/local\/bin\/node\r\n\/usr\/local\/lib\/node_modules\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph -->Simply navigate to these directories and delete them to complete the uninstallation.<\/p>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:paragraph --><strong>Step 2: Remove Residual Files<br \/><\/strong>Type the following commands to delete any leftover Node.js folders after opening the terminal:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18399,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" class=\"wp-image-18399\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Remove-Residual-Files-1024x546.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>rm -rf \/usr\/local\/bin\/node\r\nrm -rf \/usr\/local\/bin\/node_modules\r\nrm -rf ~\/.npm\r\nrm -rf ~\/.node-gyp\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n<p><!-- wp:paragraph --><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.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":18400,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"632\" class=\"wp-image-18400\" src=\"https:\/\/www.softsuave.com\/blog\/wp-content\/uploads\/2024\/10\/Clean-Up-Environment-Variables-1024x632.webp\" alt=\"\" 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>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:paragraph \/-->\r\n\r\n<!-- wp:heading -->\r\n<h2 id=\"h-verifying-complete-uninstallation\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Verifying_Complete_Uninstallation\"><\/span>Verifying Complete Uninstallation<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p><!-- \/wp:heading -->To ensure a complete uninstallation, use system commands such as for Windows: where node, where npm, where npx and for macOS\/Linux: command -v node, command -v npm, command -v npx, which node, whereis node 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.<\/p>\r\n<!-- \/wp:columns -->\r\n<p><!-- wp:paragraph -->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>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading -->\r\n<h2 id=\"h-troubleshooting\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting\"><\/span>Troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<!-- \/wp:heading -->\r\n<p><!-- wp:paragraph -->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.<\/p>\r\n<h2><span class=\"ez-toc-section\" id=\"Which_Nodejs_Uninstall_Method_Should_You_Use\"><\/span><span data-sheets-root=\"1\">Which Node.js Uninstall Method Should You Use?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p><span data-sheets-root=\"1\">Use the uninstall method based on how Node.js was installed on your system.<\/span><\/p>\r\n<table dir=\"ltr\" style=\"height: 783px;\" border=\"1\" width=\"544\" cellspacing=\"0\" cellpadding=\"0\" data-sheets-root=\"1\" data-sheets-baot=\"1\"><colgroup> <col width=\"310\" \/> <col width=\"469\" \/><\/colgroup>\r\n<tbody>\r\n<tr>\r\n<td><strong>If Node.js was installed using<\/strong><\/td>\r\n<td><strong>Use this uninstall method<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Windows installer<\/td>\r\n<td>Uninstall from Windows Settings or Control Panel<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>winget<\/td>\r\n<td>Use winget uninstall OpenJS.NodeJS or winget uninstall OpenJS.NodeJS.LTS<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Chocolatey<\/td>\r\n<td>Use choco uninstall nodejs or choco uninstall nodejs-lts<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>nvm-windows<\/td>\r\n<td>Use nvm list and nvm uninstall &lt;version&gt;<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Homebrew on macOS<\/td>\r\n<td>Use brew uninstall node<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>NVM on macOS\/Linux<\/td>\r\n<td>Use nvm uninstall &lt;version&gt;<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>APT on Ubuntu\/Linux<\/td>\r\n<td>Use sudo apt purge nodejs npm<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>NodeSource on Linux<\/td>\r\n<td>Remove Node.js package and NodeSource repository<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Snap on Linux<\/td>\r\n<td>Use sudo snap remove node<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Manual binary\/source install<\/td>\r\n<td>Remove Node.js files from the installation path manually<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<!-- \/wp:paragraph -->\r\n<p><!-- wp:heading {\"level\":3} --><span data-sheets-root=\"1\">Choosing the correct method is important because Node.js can leave behind files in different locations depending on the installation method.<\/span><\/p>\r\n<h3 id=\"h-conclusion\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p><!-- \/wp:heading -->&#8220;Uninstalling Node.js completely is easier when you know how it was installed. Windows users may need to remove Node.js through Settings, Control Panel, winget, Chocolatey, or nvm-windows. macOS users may need to check Homebrew, the official installer, or NVM. Linux users should verify whether Node.js was installed using APT, NodeSource, Snap, NVM, or a manual binary.<\/p>\r\n<p>After uninstalling, always verify the removal using commands like node -v, npm -v, where node, or which node. If Node.js still appears, it usually means another installation path, package manager, or PATH entry is still active.<\/p>\r\n<p>If you are uninstalling Node.js because of version conflicts, you may not need a full removal. In many cases, using a version manager such as NVM can help you switch between Node.js versions safely. Once the old version is removed, reinstall the latest stable LTS version of Node.js to keep your development environment clean and updated.&#8221;<\/p>\r\n<\/div>\r\n<\/div>\r\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p><!-- \/wp:column --><\/div>","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-32234","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\/32234","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=32234"}],"version-history":[{"count":8,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/posts\/32234\/revisions"}],"predecessor-version":[{"id":32281,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/posts\/32234\/revisions\/32281"}],"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=32234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/categories?post=32234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softsuave.com\/blog\/wp-json\/wp\/v2\/tags?post=32234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}