Remove icinga web2 host permanently

hello i need to know some way to permanently remove host. web 2, since it was no longer part of the network! Then I decided to delete all records of the raspberry pi from the database and for a few hours it disappeared from icingaweb2 but then it reappeared, does anyone know any way that it does not show up in icinga web2. I have the host configurations made in debian 10. Greetings

All you need to do is delete the host definition and the zone definition for the
machine you no longer have, then reload icinga.

If it still shows up in Icingaweb2 after doing that, start with a recursive
search for the machine’s name (as displayed in Icingaweb2):

grep -r machinename /etc/icinga2

That should show you anything you might have forgotten.

Antony.