How do I clear the blacklist?

I'd like to clear the blacklist. I uploaded a tarball with three black list entries with the teleporter and selected blacklist (exact) and checked the box for clear existing data. It successfully uploaded.

When I go back to the blacklist, I still have all of the previous entries.

I rebooted my pi and ran pihole -g

How many do you have on your blacklist?

You can delete them one by one.

1 Like

I have 3,000

Wipe everything and start from scratch. Consider this a learning experience.

1 Like

Is there a file on the pi hole that I can delete instead?

I'm not super concerned because they're duplicated with my custom list. I figure dups can't hurt.

Hi, I had a similar problem, and asked in this thread

yubiuser was very helpfull and gave me this answer:

Which version are you using? You can easily delete multiple or all blacklist entirety via Sql on the command line in version v5.

https://docs.pi-hole.net/database/gravity/

To delete all exact blacklist

sudo sqlite3 /etc/pihole/gravity.db "delete from domainlist where type=1;"

1 Like

All the adlists and domain lists are kept in a single database at /etc/pihole/gravity.db. You can manipulate entries in that database from the command line as described in this section of the documentation.

https://docs.pi-hole.net/database/gravity/example/

1 Like

Hi jfb! Sorry for cross-posting, mind taking a look at this post?

Thank you!!

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