es curl 命令之删除索引

6,347 阅读1分钟

简单操作,如下所示:

curl -u 你的账号:你的密码 -XDELETE 'http://所在主机ip:端口/索引名'

举个例子:

curl -u wys:123456 -XDELETE 'http://localhost:9200/address'
# 意思是用 wys 的账户和密码删除在 localhost 主机上默认端口 9200 的 es 服务的 address 索引