# Whitelist not deleting entries -non lists

**URL:** https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774
**Category:** General
**Created:** [June 22, 2017, 3:07pm UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774 "2017-06-22T15:07:11Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 22, 2017, 3:07pm UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/1 "2017-06-22T15:07:11Z")

</div>

Pi-hole Version v3.1 Web Interface Version v3.1 FTL Version v2.9.2

On the admin interface, whitelist entries such as drive.google.com delete but upon refresh they re-appear. When I delete them from the Whitelist file they stay deleted.

---

<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: [June 22, 2017, 3:19pm UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/2 "2017-06-22T15:19:17Z")

</div>

Can you show us the permissions of the files in the Pi-hole directory?

```
ls -lach /etc/pihole

```

Thank you.

---

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 23, 2017, 4:46am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/3 "2017-06-23T04:46:24Z")

</div>

drwxrwxrwx 2 pihole pihole 4.0K Jun 22 21:45 .  
drwxr-xr-x 122 root root 12K Jun 20 14

---

<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: [June 23, 2017, 4:57am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/4 "2017-06-23T04:57:13Z")

</div>

Which whitelist file are you editing manually?

---

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 23, 2017, 5:00am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/5 "2017-06-23T05:00:43Z")

</div>

/etc/pihole/whitelist.txt

---

<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: [June 23, 2017, 5:01am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/6 "2017-06-23T05:01:49Z")

</div>

Okay, and the permissions on that file?

```
ls -lach /etc/pihole/whitelist.txt

```

---

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 23, 2017, 5:02am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/7 "2017-06-23T05:02:30Z")

</div>

> [@DanSchaper](#):
>
> ls -lach /etc/pihole/whitelist.txt

-rw-r--r-- 1 pi pi 4.3K Jun 22 22:01 /etc/pihole/whitelist.txt

---

<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: [June 23, 2017, 5:03am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/8 "2017-06-23T05:03:12Z")

</div>

Are there any other files in the `/etc/pihole` directory?

---

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 23, 2017, 5:04am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/9 "2017-06-23T05:04:43Z")

</div>

yes, lots. all the lists, blacklist.txt, etc

---

<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: [June 23, 2017, 5:05am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/10 "2017-06-23T05:05:05Z")

</div>

Can you run `pihole -d` and get us the debug token so we can take a look at the files?

---

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 23, 2017, 5:07am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/11 "2017-06-23T05:07:11Z")

</div>

Thanks! Here is the token. nf00a0p073

---

<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: [June 23, 2017, 5:18am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/12 "2017-06-23T05:18:29Z")

</div>

There looks to be duplicates of your wildcard lists in `/etc/dhcpcd.d/` a `03` and and `x03`. Also you have source lists that are not Pi-hole compatible in your sources list. Those need to be removed and then `pihole -r` to repair the install when they have been removed.

> [@How do I add additional block lists to Pi-hole?](https://discourse.pi-hole.net/t/how-do-i-add-additional-block-lists-to-pi-hole/259):
>
> Pi-hole's Default Block Lists List Formats It's very important that whatever lists you decide to add to Pi-hole are in [HOSTS format](http://man7.org/linux/man-pages/man5/hosts.5.html). Pi-hole's knows how to parse these lists. As you'll see below, things like Adblock Plus' EasyLists can't be automatically imported into Pi-hole. If you are interested in adding additional domains to block, check out [WaLLy3K's blocklist compilation](https://wally3k.github.io/). Easiest way to add additional lists UPDATE: As of version 3.0, adlist management can now be done via the web UI, …

---

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 23, 2017, 5:26am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/13 "2017-06-23T05:26:22Z")

</div>

I do not see a /etc/dhcpcd.d directory.

---

<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: [June 23, 2017, 5:45am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/14 "2017-06-23T05:45:26Z")

</div>

My apologies, it's the `/etc/dnsmasq.d` directory.

---

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 23, 2017, 11:10am UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/15 "2017-06-23T11:10:28Z")

</div>

ok, thanks. I removed the duplicate x03. When you say I have source lists that are not compatible what do you mean by that?

---

<div class="post-metadata">

### Author: ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)
#### Post date: [June 23, 2017, 2:48pm UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/16 "2017-06-23T14:48:37Z")

</div>

The lists need to be in [HOSTS format](http://man7.org/linux/man-pages/man5/hosts.5.html).

---

<div class="post-metadata">

### Author: ![pcgorilla](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/ce73a5/32.png) [@pcgorilla](https://discourse.pi-hole.net/u/pcgorilla)
#### Post date: [June 23, 2017, 6:31pm UTC](https://discourse.pi-hole.net/t/whitelist-not-deleting-entries-non-lists/3774/17 "2017-06-23T18:31:51Z")

</div>

Thanks a bunch for the assistance.
