Elasticsearch通配符删除索引及禁止使用通配符

/ elasticsearch / 没有评论 / 2384浏览

删除具体索引

curl -XDELETE http://localhost:9200/twitter 

删除通配符索引

删除所有的

curl -XDELETE http://localhost:9200/_all

curl -XDELETE http://localhost:9200/*

一次删除多个索引

curl -XDELETE http://localhost:9200/twitter,my_index

禁止通配符索引

配置文件添加

action.destructive_requires_name = true