v2-.jpg

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

发表回复

您的电子邮箱地址不会被公开。

Captcha Code