# How to uninstall cloudflared from Raspberry Pi

**URL:** <https://discourse.pi-hole.net/t/how-to-uninstall-cloudflared-from-raspberry-pi/37338>\
**Category:** Community Help\
**Created:** [August 17, 2020, 8:40pm UTC](https://discourse.pi-hole.net/t/how-to-uninstall-cloudflared-from-raspberry-pi/37338 "2020-08-17T20:40:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpl](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpl/32/12928_2.png) [@jpl](https://discourse.pi-hole.net/u/jpl)\
**Post date:** [August 17, 2020, 8:40pm UTC](https://discourse.pi-hole.net/t/how-to-uninstall-cloudflared-from-raspberry-pi/37338/1 "2020-08-17T20:40:02Z")

</div>

**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](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459)) 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.)

```auto
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.

```auto
$ 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:

```auto
$ 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 ...

```auto
$ 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.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [August 18, 2020, 1:19am UTC](https://discourse.pi-hole.net/t/how-to-uninstall-cloudflared-from-raspberry-pi/37338/2 "2020-08-18T01:19:59Z")

</div>

> **[Redirecting...](https://docs.pi-hole.net/guides/dns-over-https/#uninstalling-cloudflared)**

---

<div class="post-metadata">

**Author:** ![jpl](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpl/32/12928_2.png) [@jpl](https://discourse.pi-hole.net/u/jpl)\
**Post date:** [August 18, 2020, 1:41am UTC](https://discourse.pi-hole.net/t/how-to-uninstall-cloudflared-from-raspberry-pi/37338/3 "2020-08-18T01:41:33Z")

</div>

Perfect, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [September 8, 2020, 1:47am UTC](https://discourse.pi-hole.net/t/how-to-uninstall-cloudflared-from-raspberry-pi/37338/4 "2020-09-08T01:47:23Z")

</div>

Closed on September 8, 2020, 1:47am UTC

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