One - One Code All

Blog Content

Elasticsearch 删除索引下的所有数据

ElasticSearch   2020-04-26 08:41:46

#清空索引

curl -XPOST http://127.0.0.1:9200/quality_control/my_type/_delete_by_query?refresh&slices=5&pretty { "query": { "match_all": {} } }

# 删除多个索引

curl -XDELETE  http://127.0.0.1:9200/index1,index2,index3



上一篇:opendistro sql的二次开发
下一篇:elasticsearch报错索引已存在IndexAlreadyExistsException,创建mapping

The minute you think of giving up, think of the reason why you held on so long.