Uninstall (AEN 4.1.1)
=====================

.. raw:: html

    <div class="section" id="server">
    <h2>Server<a class="headerlink" href="#server" title="Permalink to this headline">¶</a></h2>
    <p>To remove the Anaconda Enterprise Notebooks Server, execute the
    following commands as <code class="docutils literal"><span class="pre">root</span></code> (or via <code class="docutils literal"><span class="pre">sudo</span></code>) on the AEN <em>Server</em>
    host system:</p>
    <p>Stop the <em>Server</em> processes:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">service</span> <span class="n">wakari</span><span class="o">-</span><span class="n">server</span> <span class="n">stop</span>
    </pre></div>
    </div>
    <p>Stop MongoDB:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">service</span> <span class="n">mongod</span> <span class="n">stop</span>
    </pre></div>
    </div>
    <p>Remove AEN <em>Server</em> software, AEN database files, and <code class="docutils literal"><span class="pre">nginx</span></code>
    configuration:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">wakari</span><span class="o">/</span><span class="n">wakari</span><span class="o">-</span><span class="n">server</span>
    <span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">wakari</span><span class="o">/</span><span class="n">miniconda</span>
    <span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">lib</span><span class="o">/</span><span class="n">mongo</span><span class="o">/</span><span class="n">wakari</span><span class="o">*</span>
    <span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">nginx</span><span class="o">/</span><span class="n">conf</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">www</span><span class="o">.</span><span class="n">enterprise</span><span class="o">.</span><span class="n">conf</span>
    </pre></div>
    </div>
    <p>Note: remove <code class="docutils literal"><span class="pre">/etc/nginx/conf.d/www.enterprise.https.conf</span></code> if SSL is enabled on the <em>Server</em></p>
    <p>Restart MongoDB and Nginx:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">service</span> <span class="n">mongod</span> <span class="n">restart</span>
    <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
    </pre></div>
    </div>
    <p>Check for any outstanding AEN <em>Server</em> processes and stop them:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">ps</span> <span class="o">-</span><span class="n">ef</span> <span class="o">|</span> <span class="n">grep</span> <span class="o">-</span><span class="n">e</span> <span class="n">wakari</span><span class="o">-</span><span class="n">server</span> <span class="o">-</span><span class="n">e</span> <span class="n">wk</span><span class="o">-</span><span class="n">server</span>
    </pre></div>
    </div>
    <p>Remove the administrative user account named <code class="docutils literal"><span class="pre">wakari</span></code>:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">userdel</span> <span class="n">wakari</span>
    </pre></div>
    </div>
    <p>Check for and remove any references to <code class="docutils literal"><span class="pre">aen</span></code> or <code class="docutils literal"><span class="pre">wakari</span></code> from the
    <code class="docutils literal"><span class="pre">root</span></code> user&#8217;s <code class="docutils literal"><span class="pre">.condarc</span></code> file:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">grep</span> <span class="o">-</span><span class="n">i</span> <span class="n">aen</span> <span class="o">~/.</span><span class="n">condarc</span>
    <span class="n">grep</span> <span class="o">-</span><span class="n">i</span> <span class="n">wakari</span> <span class="o">~/.</span><span class="n">condarc</span>
    </pre></div>
    </div>
    </div>
    <div class="section" id="gateway">
    <h2>Gateway<a class="headerlink" href="#gateway" title="Permalink to this headline">¶</a></h2>
    <p>To remove the <em>Gateway</em>, execute the following commands as <code class="docutils literal"><span class="pre">root</span></code> (or
    via <code class="docutils literal"><span class="pre">sudo</span></code>) on the <em>Gateway</em> host system:</p>
    <p>Stop the <em>Gateway</em> processes:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">service</span> <span class="n">wakari</span><span class="o">-</span><span class="n">gateway</span> <span class="n">stop</span>
    </pre></div>
    </div>
    <p>Remove <em>Gateway</em> software:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">wakari</span><span class="o">/</span><span class="n">wakari</span><span class="o">-</span><span class="n">gateway</span>
    </pre></div>
    </div>
    <p>Check for any outstanding <em>Gateway</em> processes and stop them:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">ps</span> <span class="o">-</span><span class="n">ef</span> <span class="o">|</span> <span class="n">grep</span> <span class="o">-</span><span class="n">e</span> <span class="n">wakari</span><span class="o">-</span><span class="n">gateway</span> <span class="o">-</span><span class="n">e</span> <span class="n">wk</span><span class="o">-</span><span class="n">gateway</span>
    </pre></div>
    </div>
    <p>Remove the administrative user account named <code class="docutils literal"><span class="pre">wakari</span></code>:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">userdel</span> <span class="n">wakari</span>
    </pre></div>
    </div>
    <p>Check for and remove any references to <code class="docutils literal"><span class="pre">aen</span></code> or <code class="docutils literal"><span class="pre">wakari</span></code> from the
    <code class="docutils literal"><span class="pre">root</span></code> user&#8217;s <code class="docutils literal"><span class="pre">.condarc</span></code> file:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">grep</span> <span class="o">-</span><span class="n">i</span> <span class="n">aen</span> <span class="o">~/.</span><span class="n">condarc</span>
    <span class="n">grep</span> <span class="o">-</span><span class="n">i</span> <span class="n">wakari</span> <span class="o">~/.</span><span class="n">condarc</span>
    </pre></div>
    </div>
    </div>
    <div class="section" id="compute-node">
    <h2>Compute Node<a class="headerlink" href="#compute-node" title="Permalink to this headline">¶</a></h2>
    <p>To remove the <em>Compute</em> Node, execute the following commands as <code class="docutils literal"><span class="pre">root</span></code>
    (or via <code class="docutils literal"><span class="pre">sudo</span></code>) on each <em>Compute</em> host system:</p>
    <p>Stop the <em>Compute</em> processes:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">service</span> <span class="n">wakari</span><span class="o">-</span><span class="n">compute</span> <span class="n">stop</span>
    </pre></div>
    </div>
    <p>Remove <em>Compute</em> software:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">wakari</span><span class="o">/</span><span class="n">wakari</span><span class="o">-</span><span class="n">compute</span>
    <span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">wakari</span><span class="o">/</span><span class="n">miniconda</span>
    <span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">wakari</span><span class="o">/</span><span class="n">anaconda</span>
    </pre></div>
    </div>
    <p>Check for any outstanding <em>Compute</em> processes and stop them:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">ps</span> <span class="o">-</span><span class="n">ef</span> <span class="o">|</span> <span class="n">grep</span> <span class="o">-</span><span class="n">e</span> <span class="n">wakari</span><span class="o">-</span><span class="n">compute</span> <span class="o">-</span><span class="n">e</span> <span class="n">wk</span><span class="o">-</span><span class="n">compute</span>
    </pre></div>
    </div>
    <p>Remove the administrative user account named <code class="docutils literal"><span class="pre">wakari</span></code>:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">userdel</span> <span class="n">wakari</span>
    </pre></div>
    </div>
    <p>Check for and remove any references to <code class="docutils literal"><span class="pre">aen</span></code> or <code class="docutils literal"><span class="pre">wakari</span></code> from the
    <code class="docutils literal"><span class="pre">root</span></code> user&#8217;s <code class="docutils literal"><span class="pre">.condarc</span></code> file:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">grep</span> <span class="o">-</span><span class="n">i</span> <span class="n">aen</span> <span class="o">~/.</span><span class="n">condarc</span>
    <span class="n">grep</span> <span class="o">-</span><span class="n">i</span> <span class="n">wakari</span> <span class="o">~/.</span><span class="n">condarc</span>
    </pre></div>
    </div>
    <p>OPTIONAL: If you want to remove all AEN <em>Projects</em> as well (this is an
    extreme measure):</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">rm</span> <span class="o">-</span><span class="n">Rf</span> <span class="o">/</span><span class="n">projects</span>
    </pre></div>
    </div>
    </div>
