How to uninstall cloudflared from Raspberry Pi

Details about my system:
Pi-hole v5.2
Linux [device] 5.4.51-v8+ #1327 SMP PREEMPT Thu Jul 23 11:11:34 BST 2020 aarch64 GNU/Linux

The issue I am facing:
I'd like to completely uninstall cloudflared from my Raspberry Pi. (I know how to remove the config from Pi-hole.) If there are any instructions on how to do this I'd appreciate it. The only thing I've found (here) seems like a brute force delete of files / dirs and not a clean uninstall.

What I've done so far:

  1. I began by stopping and disabling the cloudflared services. (I think there are only two? I don't know for sure.)
sudo systemctl stop cloudflared
sudo systemctl stop cloudflared.service
sudo systemctl disable cloudflared
sudo systemctl disable cloudflared.service
  1. The service appears to be stopped.
$ sudo systemctl status cloudflared.service 
● cloudflared.service - cloudflared DNS over HTTPS proxy
   Loaded: loaded (/etc/systemd/system/cloudflared.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

[... snip ...]
Aug 17 11:41:31 [device] systemd[1]: Stopping cloudflared DNS over HTTPS proxy...
Aug 17 11:41:31 [device] systemd[1]: cloudflared.service: Succeeded.
Aug 17 11:41:31 [device] systemd[1]: Stopped cloudflared DNS over HTTPS proxy.
  1. However, I can't seem to successfully run any type of uninstall. Here's what I've tried:
$ sudo apt-get remove cloudflared
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cloudflared

And for cloudflared.service ...

$ sudo apt-get remove cloudflared.service
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cloudflared.service
E: Couldn't find any package by glob 'cloudflared.service'
E: Couldn't find any package by regex 'cloudflared.service'

What I have changed since installing Pi-hole:

  • I added "arm_64bit=1" to the end of /boot/config.txt
    (this had no impact on Pi-hole, it ran fine after that.)

Thanks.

https://docs.pi-hole.net/guides/dns-over-https/#uninstalling-cloudflared

1 Like

Perfect, thanks!

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