title: How to uninstall n and all node versions installed by n
body: <p>I have installed some Node.js versions with the tool <a href="https://github.com/tj/n" rel="noreferrer"><code>n</code></a>. I have uninstalled all Node.js versions using:</p>
  
  <pre><code>sudo n prune
  </code></pre>
  
  <p>except the current (activated) version. If I try to unsinstall the current version:</p>
  
  <p><code>sudo n rm 6.10.2</code></p>
  
  <p>I get the following error.:</p>
  
  <blockquote>
    <p><code>Error: cannot remove currently active version (node/6.10.2)</code>.</p>
  </blockquote>
  
  <p>I can not figure out, how to set the systems (Arch Linux) default Node.js version, which is already installed and was used to install <code>n</code>.</p>
  
  <p>If uninstall <code>n</code> using:</p>
  
  <pre><code>sudo npm uninstall -g n
  </code></pre>
  
  <p>it leaves the current version on my computer.</p>
  
  <pre><code>ls /usr/local/n/versions/node/                                                                                                                                                                      
  6.10.2/
  </code></pre>
  
  <p>Do I need to manually delete the folder: <code>/usr/local/n/</code>? Or, is there an option in <code>n</code> to uninstall it and all the Node.js versions installed by <code>n</code>, so that I get the setting before I installed <code>n</code>?</p>