How to clear ALL logs including long-term data

if you usa 'flush logs' and 'flush network table' in the webinterface long term data isn't fully deleted.

so how/where/why?

thanx
tom

ok:
cd /etc/pihole
sudo service pihole-FTL stop
sudo rm pihole-FTL.db
sudo service pihole-FTL start

remains: why?

1 Like

ok. thanx. not really straight forward as the developer admits too ...

Note that the commands for the long term database delete the old one and then immediately creates a new one.

What is it you want to accomplish? A one time clearing of old data?

1 Like

the most clear method were to provide the info that the webinterface clears only 24h logs. in addition i'd add an option box where one can check 'clear entire history/database' and if checked does claer all entries.

of course you could also add a dropdown with from/to dates and translate this in a sql-statement to erase the choosen data/time-frame. but i'd see this as a little 'over-engenieerd ...

Done.

1 Like

wow. that was fast :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.