# Elasticsearchのコマンドでの「.monitoring」のindex削除について

**URL:** <https://discuss.elastic.co/t/elasticsearch-monitoring-index/218565>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [February 10, 2020, 10:50am UTC](https://discuss.elastic.co/t/elasticsearch-monitoring-index/218565 "2020-02-10T10:50:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Negi700](https://avatars.discourse-cdn.com/v4/letter/n/e9bcb4/32.png) [@Negi700](https://discuss.elastic.co/u/Negi700)\
**Post date:** [February 10, 2020, 10:50am UTC](https://discuss.elastic.co/t/elasticsearch-monitoring-index/218565/1 "2020-02-10T10:50:33Z")

</div>

下記のようなelasticsearchのコマンドで「.monitoring」のindexを削除したいのですが、  
可能でしょうか？  
可能でしたら削除コマンドのご教示をお願いします。

■「.monitoring」のindex削除コマンドの例  
curl -XDELETE localhost:9200/{.monitoring-es-6-yyyy.mm.dd}?pretty

よろしくお願いします。

---

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [February 10, 2020, 1:01pm UTC](https://discuss.elastic.co/t/elasticsearch-monitoring-index/218565/2 "2020-02-10T13:01:44Z")

</div>

既にお試しいただいているかもしれませんが、  
こちらの環境（7.5.2)では、以下のようなcurlでindexが削除できましたよ。

> curl -X DELETE [http://localhost:9200/.monitoring-es-7-2020.02.06?pretty](http://localhost:9200/.monitoring-es-7-2020.02.06?pretty)

複数を対象としたいなら、他のIndexを消すときと同様に\*を使えます。

> curl -X DELETE [http://localhost:9200/.monitoring-es-7-2020.02.\*?pretty](http://localhost:9200/.monitoring-es-7-2020.02.*?pretty)

---

<div class="post-metadata">

**Author:** ![Negi700](https://avatars.discourse-cdn.com/v4/letter/n/e9bcb4/32.png) [@Negi700](https://discuss.elastic.co/u/Negi700)\
**Post date:** [February 14, 2020, 5:30am UTC](https://discuss.elastic.co/t/elasticsearch-monitoring-index/218565/3 "2020-02-14T05:30:44Z")

</div>

レス、ありがとうございます。  
おかげさまで、削除できました。

---

<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:** [March 13, 2020, 5:30am UTC](https://discuss.elastic.co/t/elasticsearch-monitoring-index/218565/4 "2020-03-13T05:30:44Z")

</div>

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