Cannot delete index template

Hi,

I accidentally created 2 templates with the same name and same pattern.
Unfortunately, I don't remember how this happened, because the API does not allow to create templates of same priority and same pattern. But I got there..
Maybe one template was created with 7.6.2. We recently upgraded.

Anyway, I saw 2 duplicated templates "geoserveis-7.8.0" en GET _cat/templates/

I DELETEd the template, and one disappeared. The other is still there though:

GET _cat/templates/?v&name=geoserveis-7.8.0

name                    index_patterns       order version composed_of
geoserveis-7.8.0        [geoserveis-7.8.0-*] 1             []

Now it seems I cannot delete the other one:

DELETE _template/geoserveis-7.8.0

{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_template_missing_exception",
        "reason" : "index_template [geoserveis-7.8.0] missing"
      }
    ],
    "type" : "index_template_missing_exception",
    "reason" : "index_template [geoserveis-7.8.0] missing"
  },
  "status" : 404
}

Template rules are not being applied to a index.
How can I get rid of the "ghost" template geoserveis-7.8.0?

OK, I got the endpoint wrong: since v7.8 it's

DELETE _index_template/geoserveis-7.8.0

:grinning:

1 Like

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