Uninstall broken

Attempted to use uninstall Pi-hole as part of some troubleshooting and it fails:

pi@pi0-2:~$ pihole uninstall 
  [?] Are you sure you would like to remove Pi-hole? [y/N] y
  [✓] Root user check
/opt/pihole/uninstall.sh: line 42: : No such file or directory
1 Like

I've seen that as well, but wasn't sure if it was due to some customization

I have a stock install. The uninstaller is looking for a file that doesn't exist in V6 but did in V5.

If you want to uninstall, delete /etc/pihole, install v5 and uninstall from there. At least that's what I think I did to get back to start.

1 Like

Cool. Thanks for the tip!

I don't need to uninstall anymore but I was reporting here anyway because it should eventually work on V6.

The uninstaller needed some love already before v6. But now it needs some more care. It's obviously broken.

https://github.com/pi-hole/pi-hole/issues/5452