I delete ElasticSearch(elasticsearch-7.2.0) document using:
curl -H'Content-Type:application/json' -d'{
"query": {
"range": {
"@timestamp": {
"lt": "now-40d",
"format": "epoch_millis"
}
}
}
}
' -XPOST "http://127.0.0.1:9200/*-*/_delete_by_query?pretty"
this is the result:
{
"took" : 55500,
"timed_out" : false,
"total" : 16710000,
"deleted" : 16710000,
"batches" : 20000,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0,
"failures" : [ ]
}
but when I check the disk usage:
du -sh /data/docker/efk/elasticsearch-7.2.0/data/nodes/0
the disk space did not released.What should I do to make disk space release?