For example I want to remove google.com from the logs.
Is there a way to delete it from the database?
Also if I remove a device from the network table will it delete all it's logged domains?
Not via the Pi-hole web GUI. You can use SQL database commands to purge this from the database.
No.
Hey, thanks for answering. I did delete them from the logs with
sqlite3 /etc/pihole/pihole-FTL.db "DELETE FROM queries WHERE domain='example.com';"
But I still have one more problem. It did not change the number of queries in the network tab. Is there a way to reflect the changes and get the new lower number after I deleted the queries?
I think you will need to delete the entire entry in the database for each of those queries. But, I have not done this so can only surmise.
Edit - this is incorrect. See further comments below.
What do you mean 'entire entry'? Doesn't the SQL command I posted above do exactly that?
Yes, it is sufficient. @jfb SQLite3 always operates on whole database rows. DELETE FROM queries
with WHERE domain='blah'
will remove all entire lines under the given constraint.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.