Director delete hosts still appear in icingaweb

Hi
I’ve got an HA master setup with 2 master and 1 satellite. the version is (version: r2.11.3-1) on the 3 nodes.
zones.conf in master1

object Endpoint "master1" {
host = NodeName
}

object Endpoint "master2" {
host = "1.2.3.4"
port = "5665"
}

object Zone "master" {
endpoints = [ "master1", "master2" ]
}

object Endpoint "satellite1" {
host = "4.3.2.1"
port = "5665"
}

object Zone "interne" {
endpoints = [ "satellite" ]
parent = "master"
}


object Zone "global-templates" {
global = true
}

object Zone "director-global" {
global = true
}

object Zone "global-commands" {
global = true
}

master2

object Endpoint "master1" {
}

object Endpoint "master2t" {
}

object Zone "master" {
endpoints = [ "master1", "master2" ]
}

object Endpoint "satellite" {
host = "4.3.2.1"
port = "5665"
}

object Zone "interne" {
endpoints = [ "sattelite" ]
parent = "master"
}

object Zone "global-templates" {
global = true
}

object Zone "director-global" {
global = true
}

satellite

object Endpoint "master1" {
}

object Endpoint "master2" {
}

object Zone "master" {
endpoints = [ "master1", "master2" ]
}

object Endpoint "satellite" {
}

object Zone "interne" {
endpoints = [ "satellite" ]
parent = "master"
}

object Zone "global-templates" {
global = true
}

object Zone "director-global" {
global = true
}

So I try to add an host with icinga director with succes. But after that i try to delete it with succes but he still appear in icingaweb2

I find some config file for it

grep -R host_test /var/lib/icinga2/api/
/var/lib/icinga2/api/zones-stage/interne/director/hosts.conf: display_name = “host_test”
/var/lib/icinga2/api/zones/interne/director/hosts.conf: display_name = “host_test”

and

icinga2 object list --type host --name host_test
Object ‘an-lin-w20-nd.ad.perf1.net’ of type ‘Host’:
% declared in ‘/var/lib/icinga2/api/zones/interne/director/hosts.conf’, lines 1:0-1:39

  • __name = “host_test”
  • action_url = “”
  • address = “192.168.1.20”
    % = modified in ‘/var/lib/icinga2/api/zones/interne/director/hosts.conf’, lines 5:5-5:30
  • address6 = “”
  • check_command = “hostalive”
    % = modified in ‘/var/lib/icinga2/api/zones/director-global/director/host_templates.conf’, lines 2:5-2:31
  • check_interval = 300
    % = modified in ‘/var/lib/icinga2/api/zones/director-global/director/host_templates.conf’, lines 5:5-5:23
  • check_period = “24x7”
    % = modified in ‘/var/lib/icinga2/api/zones/director-global/director/host_templates.conf’, lines 4:5-4:25
  • check_timeout = null
  • command_endpoint = “”
  • display_name = “host_test”
    % = modified in ‘/var/lib/icinga2/api/zones/interne/director/hosts.conf’, lines 4:5-4:30
  • enable_active_checks = true
  • enable_event_handler = true
  • enable_flapping = true
    % = modified in ‘/var/lib/icinga2/api/zones/director-global/director/host_templates.conf’, lines 7:5-7:26
  • enable_notifications = true
    % = modified in ‘/var/lib/icinga2/api/zones/director-global/director/host_templates.conf’, lines 6:5-6:31
  • enable_passive_checks = true
  • enable_perfdata = true
  • event_command = “”
  • flapping_threshold = 0
  • flapping_threshold_high = 30
  • flapping_threshold_low = 25
  • groups = [ ]
  • icon_image = “”
  • icon_image_alt = “”
  • max_check_attempts = 3
    % = modified in ‘/var/lib/icinga2/api/zones/director-global/director/host_templates.conf’, lines 3:5-3:28
  • name = “host_test”
  • notes = “”
  • notes_url = “”
  • package = “_cluster”
  • retry_interval = 60
  • source_location
  • first_column = 0
  • first_line = 1
  • last_column = 39
    * last_line = 1
    * path = “/var/lib/icinga2/api/zones/interne/director/hosts.conf”
  • templates = [ “host_test”, “Linux-generic” ]
    % = modified in ‘/var/lib/icinga2/api/zones/interne/director/hosts.conf’, lines 1:0-1:39
    % = modified in ‘/var/lib/icinga2/api/zones/director-global/director/host_templates.conf’, lines 1:0-1:28
  • type = “Host”
  • vars
    * nrpe_timeout_unknown = true
    % = modified in ‘/var/lib/icinga2/api/zones/director-global/director/host_templates.conf’, lines 8:5-8:36
  • volatile = false
  • zone = “interne”

I delete config file in
/var/lib/icinga2/api/zones-stage/interne/director/hosts.conf
and
/var/lib/icinga2/api/zones/interne/director/hosts.conf
and the host gone away from my icingaweb2 so the problem is solve but I don’t understand why i need to rm theses config file, and i don’t want to rm a config file each time because I think it’s not normal

Have you got any idea why ?
Thanks

I did the test again and after deletion the host has been successfully delete from director and icingaweb2
So at the beginning I use a generic template without cluster zone configuration and command_endpoint


I create another host template with my cluster zone “interne” and command_endpoint “satellite”

May be it could be this ?