elasticsearch 清空索引

1
curl -XPOST http://localhost:9200/index/_delete_by_query?refresh\&slices=100\&pretty  -H 'Content-Type: application/json' -d @query_all.json

query_all.json:

1
2
3
{
"query": {"match_all": {}}
}