kibana:
POST index_name/_delete_by_query
{
"query": {"match_all": {}}
}
curl:
curl -u用户名:密码 -XPOST '192.168.1.123:9200/index_name/_delete_by_query?refresh&slices=5&pretty'
-H 'Content-Type: application/json'
-d'{
"query": {
"match_all": {}
}
}'