Pi-hole: Delete all logs

If you need to delete or clear all Pi-hole logs, you can do it very easy.

Login to your Pi-hole via ssh (for example with PuTTY)

Execute this commands:

cd /etc/pihole
(changes to the corresponding directory where the database is stored)

sudo service pihole-FTL stop
(stops the Pi-hole logging service)

sudo mv pihole-FTL.db pihole-FTL.db.old
(renames the current log database)

sudo service pihole-FTL start
(starts the logging service again, the system will initiate a new empty database. No logs will be available from here)

Optional:
sudo rm /etc/pihole/pihole-FTL.db.old
(deletes the old database from your Pi-hole)

Kommentare

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert