WXforum.net

Weather Software => WeeWX Software => Topic started by: flyingvranch on July 18, 2021, 11:56:44 AM

Title: Deleting database completely and starting over?
Post by: flyingvranch on July 18, 2021, 11:56:44 AM
I have Weewx installed and everything is running well. Because I was experimenting with the Davis Iss sensors and such I have a bunch of erroneous data that I need to get rid of. Now that everything is stable and running properly, how can I just delete the weewx database and start over fresh for my actual live weather data? I would prefer to clear out the old database and start fresh. Is there a proceedure or Linux command to accomplish this? Thanks!
Title: Re: Deleting database completely and starting over?
Post by: stromb0li on July 19, 2021, 05:24:09 PM
If using debian or ubuntu, these commands should do it (this will remove both WeeWX and your user data but should retain your configuration):
Code: [Select]
sudo apt-get remove weewx
sudo rm -r /var/lib/weewx
sudo rm -r /var/www/html/weewx

Docs (search for uninstall): http://weewx.com/docs/debian.htm
Title: Re: Deleting database completely and starting over?
Post by: Storm017 on July 19, 2021, 05:36:49 PM
If you installed using setup.py and you want to just delete the database then
Code: [Select]
sudo rm /home/weewx/archive/weewx.sdb
Title: Re: Deleting database completely and starting over?
Post by: flyingvranch on July 19, 2021, 09:05:21 PM
Thanks for the suggestions. As it turned out, I ended up just removing weewx and re-installing as it only takes just a minute to do so. As of now, everything is running smooth and stable and it sure is great to just have a completely quiet Pi running instead of the big desktop.
Thanks everyone!