I have an elasticsearch node with following specs:
I have deleted several documents from the index but my disk space doesn't seem to free up. The screenshot above shows that the actual documents in Elasticsearch only occupies 1.5GB as shown by disk.indices
whereas the disk.used
is 73.6GB. I have found that just deleting the document doesn't remove the document from elasticsearch, but only marks it as deleted. I have tried freeing disk space by using forcemerge as mentioned in this answer, but still my disk space shows the same.
How do I permanently delete documents from elasticsearch and free up my disk space?