# Delete index (/log-nginx-%{bu\_id}-2019.04.25)

**URL:** <https://discuss.elastic.co/t/delete-index-log-nginx-bu-id-2019-04-25/178823>\
**Category:** Elasticsearch\
**Created:** [April 29, 2019, 1:52am UTC](https://discuss.elastic.co/t/delete-index-log-nginx-bu-id-2019-04-25/178823 "2019-04-29T01:52:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![54efffbe5961982e61c0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/54efffbe5961982e61c0/32/45195_2.png) [@54efffbe5961982e61c0](https://discuss.elastic.co/u/54efffbe5961982e61c0)\
**Post date:** [April 29, 2019, 1:52am UTC](https://discuss.elastic.co/t/delete-index-log-nginx-bu-id-2019-04-25/178823/1 "2019-04-29T01:52:24Z")

</div>

I can't delete index (/log-nginx-%{bu\_id}-2019.04.25)

```auto
DELETE /log-nginx-%{bu_id}-2019.04.25

```

```json
{
  "error": {
    "root_cause": [
      {
        "type": "index_not_found_exception",
        "reason": "no such index",
        "resource.type": "index_or_alias",
        "resource.id": "log-nginx-%7Bbu_id}-2019.04.25",
        "index_uuid": "_na_",
        "index": "log-nginx-%7Bbu_id}-2019.04.25"
      }
    ],
    "type": "index_not_found_exception",
    "reason": "no such index",
    "resource.type": "index_or_alias",
    "resource.id": "log-nginx-%7Bbu_id}-2019.04.25",
    "index_uuid": "_na_",
    "index": "log-nginx-%7Bbu_id}-2019.04.25"
  },
  "status": 404
}

```

but the index exists， the elasticsearch version is 6.4.2

---

<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:** [April 29, 2019, 4:54am UTC](https://discuss.elastic.co/t/delete-index-log-nginx-bu-id-2019-04-25/178823/2 "2019-04-29T04:54:11Z")

</div>

You can probably escape it somehow, but the following (if there are no other indices matching) could also work:

`DELETE /log-nginx-*bu_id*-2019.04.25`

---

<div class="post-metadata">

**Author:** ![54efffbe5961982e61c0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/54efffbe5961982e61c0/32/45195_2.png) [@54efffbe5961982e61c0](https://discuss.elastic.co/u/54efffbe5961982e61c0)\
**Post date:** [April 29, 2019, 5:08am UTC](https://discuss.elastic.co/t/delete-index-log-nginx-bu-id-2019-04-25/178823/3 "2019-04-29T05:08:04Z")

</div>

thanks。 I have solved it with URLEndcode。

---

<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:** [May 27, 2019, 5:08am UTC](https://discuss.elastic.co/t/delete-index-log-nginx-bu-id-2019-04-25/178823/4 "2019-05-27T05:08:08Z")

</div>

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