# Can't delete indices (not using wildcards)

**URL:** <https://discuss.elastic.co/t/cant-delete-indices-not-using-wildcards/154696>\
**Category:** Elasticsearch\
**Created:** [October 30, 2018, 4:29pm UTC](https://discuss.elastic.co/t/cant-delete-indices-not-using-wildcards/154696 "2018-10-30T16:29:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrigo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jrigo/32/37119_2.png) [@jrigo](https://discuss.elastic.co/u/jrigo)\
**Post date:** [October 30, 2018, 4:29pm UTC](https://discuss.elastic.co/t/cant-delete-indices-not-using-wildcards/154696/1 "2018-10-30T16:29:44Z")

</div>

Recently a colleague created two indices but by a mistype in the CLI he ended up creating two indices with the AWS url.

So both are in the following format:

```auto
search-somerandompartternhere-eu-central-666.es.amazonaws.com:443

```

I've been trying since to delete then, I tried with a js client, curl and kibana so far. With wildcard and specifying both directly in the request. But even though I receive an `acknowledge: true`, everytime I list the indices they are there.

I can't see it as less than a bug, I went ahead and created an index with the same names in my local instance and could delete normally after. I don't know what to do anymore...

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 30, 2018, 4:42pm UTC](https://discuss.elastic.co/t/cant-delete-indices-not-using-wildcards/154696/2 "2018-10-30T16:42:12Z")

</div>

If it works on your local instance, it seems likely there may be some custom check that Amazon have added to their distribution preventing this. I would recommend you contact AWS support about this.

---

<div class="post-metadata">

**Author:** ![jrigo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jrigo/32/37119_2.png) [@jrigo](https://discuss.elastic.co/u/jrigo)\
**Post date:** [November 20, 2018, 8:59am UTC](https://discuss.elastic.co/t/cant-delete-indices-not-using-wildcards/154696/3 "2018-11-20T08:59:12Z")

</div>

I found out a cron job in the background was creating the indices with the wrong name. Nothing to do with AWS specifically or an Elasticsearch bug

---

<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:** [December 18, 2018, 8:59am UTC](https://discuss.elastic.co/t/cant-delete-indices-not-using-wildcards/154696/4 "2018-12-18T08:59:17Z")

</div>

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