# Here, how you can remove a specific domain from the pihole query domain logs

**URL:** <https://discourse.pi-hole.net/t/here-how-you-can-remove-a-specific-domain-from-the-pihole-query-domain-logs/63610>\
**Category:** General\
**Created:** [June 27, 2023, 2:11pm UTC](https://discourse.pi-hole.net/t/here-how-you-can-remove-a-specific-domain-from-the-pihole-query-domain-logs/63610 "2023-06-27T14:11:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raspUSER](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/919ad9/32.png) [@raspUSER](https://discourse.pi-hole.net/u/raspUSER)\
**Post date:** [June 27, 2023, 2:11pm UTC](https://discourse.pi-hole.net/t/here-how-you-can-remove-a-specific-domain-from-the-pihole-query-domain-logs/63610/1 "2023-06-27T14:11:17Z")

</div>

reply to [Can I remove a specific domain from the logs?](https://discourse.pi-hole.net/t/can-i-remove-a-specific-domain-from-the-logs/29384)

fully worked command (for \* **Pi-hole** [v5.17.1](https://github.com/pi-hole/pi-hole/releases/v5.17.1)

- **FTL** [v5.23](https://github.com/pi-hole/FTL/releases/v5.23)
- **Web Interface** [v5.20.1](https://github.com/pi-hole/AdminLTE/releases/v5.20.1))

```auto
sudo service pihole-FTL stop && sudo sqlite3 /etc/pihole/pihole-FTL.db "delete from query_storage where domain in (select id from domain_by_id where domain like 'example.com');" ; pihole restartdns

```

change example.com for your domain

---

<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:** [July 18, 2023, 3:55pm UTC](https://discourse.pi-hole.net/t/here-how-you-can-remove-a-specific-domain-from-the-pihole-query-domain-logs/63610/3 "2023-07-18T15:55:42Z")

</div>

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