elasticsearch删除索引

  sre

curl -XDELETE ‘localhost:8200/test*’

#删除所有以logstash-开始的索引。
curl -XDELETE ‘http://host.IP.address:9200/logstash-*’

具体API:
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html
https://www.elastic.co/guide/cn/elasticsearch/guide/current/_deleting_an_index.html
https://www.cnblogs.com/pilihaotian/p/5846173.html

LEAVE A COMMENT

Captcha Code