Elasticsearchでインデックスを削除する方法を記す。
公式ドキュメント Delete an Index を参考にした。 www.elastic.co
検証環境: Elasticsearch 6.0.0-rc1
bash-3.2$ curl -XGET 'localhost:9200/_cat/indices?v&pretty' health status index uuid pri rep docs.count docs.deleted store.size pri.store.size yellow open customer nYyfUiQVSL-KIChIroBoKg 5 1 0 0 1.1kb 1.1kb bash-3.2$ curl -XDELETE 'localhost:9200/customer?pretty&pretty' { "acknowledged" : true } bash-3.2$ curl -XGET 'localhost:9200/_cat/indices?v&pretty' health status index uuid pri rep docs.count docs.deleted store.size pri.store.size bash-3.2$