Can't delete index template

Using Kibana 8.8.1 and ES 8.8.1 I deleted an index template as follows and it was acknowledged:

DELETE /_index_template/my_template

However, when I run the following the template is still there:

GET /_cat/templates?v

Why is this happening? Thanks.

Could you share the output of the cat template call?

And what's the output of

GET /_index_template/my_template

Sure. I need to clarify that the template I deleted was called 'template_tip'. It was acknowledged. And I can repeat this behavior with other templates. Basically I'm unable to delete a template, or so it seems. Also I see a bunch of dot indices that I don't remember seeing before I upgrading to v8. Can you help understand where those came from?

name                                                        index_patterns                                            order      version composed_of
.monitoring-alerts-7                                        [.monitoring-alerts-7]                                    0          8080099 
template_kml                                                [kml-*]                                                   0                  
.monitoring-es                                              [.monitoring-es-7-*]                                      0          8080099 
template_platform_status                                    [platform-status-*]                                       0                  
.monitoring-kibana                                          [.monitoring-kibana-7-*]                                  0          8080099 
.monitoring-beats                                           [.monitoring-beats-7-*]                                   0          8080099 
template_tip                                                [tip-*]                                                   0                  
template_activity                                           [activity-*]                                         0          2       
.monitoring-logstash                                        [.monitoring-logstash-7-*]                                0          8080099 
.fleet-files                                                [.fleet-files-*-*]                                        200        1       []
.alerts-observability.slo.alerts-default-index-template     [.internal.alerts-observability.slo.alerts-default-*]     7                  [.alerts-observability.slo.alerts-mappings, .alerts-legacy-alert-mappings, .alerts-framework-mappings]
.monitoring-ent-search-mb                                   [.monitoring-ent-search-8-*]                              0          8000108 []
behavioral_analytics-events-default                         [behavioral_analytics-events-*]                           100        1       [behavioral_analytics-events-settings, behavioral_analytics-events-mappings]
.alerts-observability.metrics.alerts-default-index-template [.internal.alerts-observability.metrics.alerts-default-*] 7                  [.alerts-ecs-mappings, .alerts-observability.metrics.alerts-mappings, .alerts-legacy-alert-mappings, .alerts-framework-mappings]
.monitoring-es-mb                                           [.monitoring-es-8-*]                                      0          8000108 []
.slm-history                                                [.slm-history-5*]                                         2147483647 5       []
.alerts-observability.logs.alerts-default-index-template    [.internal.alerts-observability.logs.alerts-default-*]    7                  [.alerts-ecs-mappings, .alerts-observability.logs.alerts-mappings, .alerts-legacy-alert-mappings, .alerts-framework-mappings]
apm-source-map                                              [.apm-source-map]                                         0          1       []
logs                                                        [logs-*-*]                                                100        2       [logs-mappings, data-streams-mappings, logs-settings]
.watch-history-16                                           [.watcher-history-16*]                                    2147483647 16      []
.monitoring-beats-mb                                        [.monitoring-beats-8-*]                                   0          8000108 []
.monitoring-kibana-mb                                       [.monitoring-kibana-8-*]                                  0          8000108 []
.fleet-file-data                                            [.fleet-file-data-*-*]                                    200        1       []
synthetics                                                  [synthetics-*-*]                                          100        2       [synthetics-mappings, data-streams-mappings, synthetics-settings]
.alerts-observability.uptime.alerts-default-index-template  [.internal.alerts-observability.uptime.alerts-default-*]  7                  [.alerts-observability.uptime.alerts-mappings, .alerts-legacy-alert-mappings, .alerts-framework-mappings]
.kibana-event-log-8.8.1-template                            [.kibana-event-log-8.8.1-*]                               0                  []
.ml-state                                                   [.ml-state*]                                              2147483647 8080199 []
ilm-history                                                 [ilm-history-5*]                                          2147483647 5       []
.monitoring-logstash-mb                                     [.monitoring-logstash-8-*]                                0          8000108 []
.ml-anomalies-                                              [.ml-anomalies-*]                                         2147483647 8080199 []
metrics                                                     [metrics-*-*]                                             100        2       [metrics-mappings, data-streams-mappings, metrics-settings]
.ml-notifications-000002                                    [.ml-notifications-000002]                                2147483647 8080199 []
.deprecation-indexing-template                              [.logs-deprecation.*]                                     1000       1       [.deprecation-indexing-mappings, .deprecation-indexing-settings]
.ml-stats                                                   [.ml-stats-*]                                             2147483647 8080199 []
.alerts-observability.apm.alerts-default-index-template     [.internal.alerts-observability.apm.alerts-default-*]     7                  [.alerts-observability.apm.alerts-mappings, .alerts-legacy-alert-mappings, .alerts-framework-mappings]
.alerts-security.alerts-default-index-template              [.internal.alerts-security.alerts-default-*]              7                  [.alerts-ecs-mappings, .alerts-security.alerts-mappings, .alerts-legacy-alert-mappings, .alerts-framework-mappings]

Sorry you said cat so I misunderstood. I think you want this output:

{
  "error": {
    "root_cause": [
      {
        "type": "resource_not_found_exception",
        "reason": "index template matching [template_tip] not found"
      }
    ],
    "type": "resource_not_found_exception",
    "reason": "index template matching [template_tip] not found"
  },
  "status": 404
}

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