reply to Can I remove a specific domain from the logs?
fully worked command (for * Pi-hole v5.17.1
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