# Unable to delete index pattern in Kibana 7.15

**URL:** <https://discuss.elastic.co/t/unable-to-delete-index-pattern-in-kibana-7-15/295179>\
**Category:** Kibana\
**Created:** [January 24, 2022, 6:33am UTC](https://discuss.elastic.co/t/unable-to-delete-index-pattern-in-kibana-7-15/295179 "2022-01-24T06:33:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhinav\_chourasia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhinav_chourasia/32/41855_2.png) [@abhinav\_chourasia](https://discuss.elastic.co/u/abhinav_chourasia)\
**Post date:** [January 24, 2022, 6:33am UTC](https://discuss.elastic.co/t/unable-to-delete-index-pattern-in-kibana-7-15/295179/1 "2022-01-24T06:33:21Z")

</div>

I have moved from ELK 7.9 to ELK 7.15 in an attempt to solve this problem and it looks like all that effort was of no use. I am still unable to delete the index pattern in Kibana, neither through the console, nor through the GUI.

Trying to delete it from the saved objects section simply gets stuck for ever on this screen

[![enter image description here](https://i.stack.imgur.com/dwwKb.png)](https://i.stack.imgur.com/dwwKb.png)

Deleting it from the below, temporarily shows that the index pattern has been deleted. But once you reload the page, it comes back again

[![enter image description here](https://i.stack.imgur.com/MIES7.png)](https://i.stack.imgur.com/MIES7.png)

The Elasticsearch index does get deleted successfully however.

Trying it all from the `devtools` also does not seem to work. Some of the attempts made and the respective outputs are shown below:

```
GET .kibana/_search
{
  "_source": ["index-pattern.title"],
  "query": {
    "term": {
      "type": "index-pattern"
    }
  }
}

{
  "took" : 2,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 1,
      "relation" : "eq"
    },
    "max_score" : 4.0535226,
    "hits" : [
      {
        "_index" : ".kibana_7.15.0_001",
        "_type" : "_doc",
        "_id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
        "_score" : 4.0535226,
        "_source" : {
          "index-pattern" : {
            "title" : "all-security-bugs-from-jira"
          }
        }
      }
    ]
  }
}

```

  

```
DELETE /index_patterns/index_pattern/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30

{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index [index_patterns]",
        "resource.type" : "index_expression",
        "resource.id" : "index_patterns",
        "index_uuid" : "_na_",
        "index" : "index_patterns"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index [index_patterns]",
    "resource.type" : "index_expression",
    "resource.id" : "index_patterns",
    "index_uuid" : "_na_",
    "index" : "index_patterns"
  },
  "status" : 404
}

```

  

```
DELETE index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30

{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index [index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
        "resource.type" : "index_or_alias",
        "resource.id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
        "index_uuid" : "_na_",
        "index" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index [index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
    "resource.type" : "index_or_alias",
    "resource.id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
    "index_uuid" : "_na_",
    "index" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30"
  },
  "status" : 404
}

```

  

```
DELETE 822d7f50-7cd9-11ec-95d5-a3730f55fd30

{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index [822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
        "resource.type" : "index_or_alias",
        "resource.id" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30",
        "index_uuid" : "_na_",
        "index" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index [822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
    "resource.type" : "index_or_alias",
    "resource.id" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30",
    "index_uuid" : "_na_",
    "index" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30"
  },
  "status" : 404
}

```

  

```
GET /.kibana?pretty

```

does not give any document with the index pattern concerned.  
I have been trying to follow the suggestions on [Can't delete index pattern in Kibana - #5 by Pippo](https://discuss.elastic.co/t/cant-delete-index-pattern-in-kibana/148341/5)

Any help understanding what could I be doing wrong here is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![can.ozdemir](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@can.ozdemir](https://discuss.elastic.co/u/can.ozdemir)\
**Post date:** [January 24, 2022, 7:19am UTC](https://discuss.elastic.co/t/unable-to-delete-index-pattern-in-kibana-7-15/295179/2 "2022-01-24T07:19:52Z")

</div>

Have you tried delete\_by\_query API on .kibana\_7.15.0\_001 index, to match and delete the index pattern you want from the dev tools.

---

<div class="post-metadata">

**Author:** ![abhinav\_chourasia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhinav_chourasia/32/41855_2.png) [@abhinav\_chourasia](https://discuss.elastic.co/u/abhinav_chourasia)\
**Post date:** [January 24, 2022, 7:36am UTC](https://discuss.elastic.co/t/unable-to-delete-index-pattern-in-kibana-7-15/295179/3 "2022-01-24T07:36:00Z")

</div>

I did. But since the .kibana\_7.15.0\_001 does not seem to contain the pattern itself, it is not making any difference (I guess). Any other suggestions ? Or am I thinking this straight?

---

<div class="post-metadata">

**Author:** ![abhinav\_chourasia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhinav_chourasia/32/41855_2.png) [@abhinav\_chourasia](https://discuss.elastic.co/u/abhinav_chourasia)\
**Post date:** [January 25, 2022, 7:00am UTC](https://discuss.elastic.co/t/unable-to-delete-index-pattern-in-kibana-7-15/295179/4 "2022-01-25T07:00:29Z")

</div>

This finally worked with

```auto
DELETE .kibana/_doc/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 22, 2022, 7:00am UTC](https://discuss.elastic.co/t/unable-to-delete-index-pattern-in-kibana-7-15/295179/5 "2022-02-22T07:00:33Z")

</div>

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