Author Topic: Deleting database completely and starting over?  (Read 1011 times)

0 Members and 1 Guest are viewing this topic.

Offline flyingvranch

  • Contributor
  • ***
  • Posts: 113
    • KI5OMM Weather Station
Deleting database completely and starting over?
« 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!

Offline stromb0li

  • Member
  • *
  • Posts: 26
Re: Deleting database completely and starting over?
« Reply #1 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
« Last Edit: July 19, 2021, 05:26:44 PM by stromb0li »

Offline Storm017

  • Senior Contributor
  • ****
  • Posts: 172
Re: Deleting database completely and starting over?
« Reply #2 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

Offline flyingvranch

  • Contributor
  • ***
  • Posts: 113
    • KI5OMM Weather Station
Re: Deleting database completely and starting over?
« Reply #3 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!

 

anything