1.postman請求接口
http://ip:端口/index/type/_delete_by_query?conflicts=proceed
body為:
{
"query": {
"match_all": {}
}
}
注意,請求是POST方式。
2.curl
curl -u用戶名:密碼 -XPOST 'ip:9200/index_name/type_name/_delete_by_query?refresh&slices=5&pretty' -H 'Content-Type: application/json' -d'{ "query": { "match_all": {} } }'
3.Kibana
POST index_name/type_name/_delete_by_query
{
"query": {"match_all": {}}
}