# Delete index command from kibana not working

**URL:** <https://discuss.elastic.co/t/delete-index-command-from-kibana-not-working/248215>\
**Category:** Elasticsearch\
**Created:** [September 10, 2020, 6:03pm UTC](https://discuss.elastic.co/t/delete-index-command-from-kibana-not-working/248215 "2020-09-10T18:03:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![baidwan007](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@baidwan007](https://discuss.elastic.co/u/baidwan007)\
**Post date:** [September 10, 2020, 6:03pm UTC](https://discuss.elastic.co/t/delete-index-command-from-kibana-not-working/248215/1 "2020-09-10T18:03:10Z")

</div>

I am running DELETE /\<index\_name\> command from kibana. I get acknowledged:true response from kibana but Instead of the index getting deleted, i see that a replica shard appears instead while the primary index also stays. This is very strange and i cant wrap my head around what might be happening and how can i delete those indexes.

Details:  
Kibana/Elastic version: 7.1.1  
Licence: basic  
Template for indexes in consideration: none  
cluster settings:

```auto
    {
      "persistent" : {
        "cluster" : {
          "routing" : {
            "rebalance" : {
              "enable" : "none"
            },
            "allocation" : {
              "enable" : "new_primaries",
              "exclude" : {
                "_ip" : "10.147.112.108,10.147.118.67,10.147.120.51"
              }
            }
          }
        }
      },
      "transient" : {
        "cluster" : {
          "routing" : {
            "rebalance" : {
              "enable" : "none"
            },
            "allocation" : {
              "enable" : "new_primaries",
              "exclude" : {
                "_ip" : "10.147.112.108,10.147.118.67,10.147.120.51"
              }
            }
          }
        }
      }
    }

```

The new indexes are on the nodes not excluded from primary creation as in the settings.  
How can i delete those indexes.

---

<div class="post-metadata">

**Author:** ![baidwan007](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@baidwan007](https://discuss.elastic.co/u/baidwan007)\
**Post date:** [September 10, 2020, 6:07pm UTC](https://discuss.elastic.co/t/delete-index-command-from-kibana-not-working/248215/2 "2020-09-10T18:07:30Z")

</div>

On running the GET /\<index\_name\> command i get this

```auto
  {
  "search_supply_v5_06_2020" : {
    "aliases" : { },
    "mappings" : {...},
    "settings" : {
      "index" : {
        "creation_date" : "1599761098852",
        "number_of_shards" : "1",
        "number_of_replicas" : "1",
        "uuid" : "J9X5D3HUSneZC7J-bdgWWA",
        "version" : {
          "created" : "7010099"
        },
        "provided_name" : "search_supply_v5_06_2020"
      }
    }
  }
}

```

i changed the replicas set number to 0 and rerun delete command. That again reset the replica number to 1 here

---

<div class="post-metadata">

**Author:** ![baidwan007](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@baidwan007](https://discuss.elastic.co/u/baidwan007)\
**Post date:** [September 10, 2020, 6:32pm UTC](https://discuss.elastic.co/t/delete-index-command-from-kibana-not-working/248215/3 "2020-09-10T18:32:42Z")

</div>

one additional input.  
So what appears to be happening is that as soon as i delete then the indexes get deleted but they reform again. This is because i see number of documents increasing again till original numbers when i run GET /\<index\_name\> command multiple times .  
There is no ingestion happening on these indexes from any external service

---

<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:** [October 8, 2020, 6:33pm UTC](https://discuss.elastic.co/t/delete-index-command-from-kibana-not-working/248215/4 "2020-10-08T18:33:00Z")

</div>

Closed on October 8, 2020, 6:33pm UTC

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