How to fully uninstall pihole

Initially i wanted to add this as a post to How do I fully uninstall Pi-hole from my Ubuntu laptop? but it won't let me for some reason so here we go:

I just wanted to get rid of pihole in favor of some other DNS level blocker but after running

blu@minopia:/opt$ sudo pihole uninstall
[?] Are you sure you would like to remove Pi-hole? [y/N] y
[✓] Root user check
[i] Existing PHP installation detected : PHP version 7.0.30-0+deb9u1
[i] All dependencies are safe to remove on Raspbian
[i] The following dependencies may have been added by the Pi-hole install:
apt-utils dialog debconf dhcpcd5 git iproute2 whiptail bc cron curl dnsutils iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data resolvconf
[?] Do you wish to go through each dependency for removal? (Choosing No will leave all dependencies installed) [Y/n] n
[✓] Removed Web Interface

Pihole is still installed!

blu@minopia:/opt$ pihole
Usage: pihole [options]
Example: 'pihole -w -h'
Add '-h' after specific commands for more information on usage

Whitelist/Blacklist Options:

Please help me to get fully rid of it

The uninstall option should take care of the uninstall.

If it doesn't, you can manually delete it using:

sudo rm -rf /etc/.pihole /etc/pihole /opt/pihole /usr/bin/pihole-FTL /usr/local/bin/pihole /var/www/html/admin
1 Like

With /var/www/html/admin instead of /var/www/html/pihole it worked, thanks :slight_smile:

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