re class='tty cmd'>sudo /etc/init.d/weewx start
sudo /etc/init.d/weewx stop</pre>

<h2>Uninstall</h2>
<p>To uninstall WeeWX but retain configuration files and data:
</p>
<pre class='tty cmd'>sudo apt-get remove weewx</pre>
<p>To uninstall WeeWX, removing configuration files but retaining data:
</p>
<pre class='tty cmd'>sudo apt-get purge weewx</pre>
<p>To remove data:</p>
<pre class='tty cmd'>sudo rm -r /var/lib/weewx
sudo rm -r /var/www/html/weewx</pre>

<h2>Layout</h2>
<p>The installation will result in t