# Reclaim deleted documents memory in Elasticsearch

**URL:** https://discuss.elastic.co/t/reclaim-deleted-documents-memory-in-elasticsearch/103079
**Category:** Elasticsearch
**Created:** [October 6, 2017, 8:51pm UTC](https://discuss.elastic.co/t/reclaim-deleted-documents-memory-in-elasticsearch/103079 "2017-10-06T20:51:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Manikanth\_Reddy](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Manikanth\_Reddy](https://discuss.elastic.co/u/Manikanth_Reddy)
#### Post date: [October 6, 2017, 8:51pm UTC](https://discuss.elastic.co/t/reclaim-deleted-documents-memory-in-elasticsearch/103079/1 "2017-10-06T20:51:13Z")

</div>

Hi,

We have a situation that we are getting some error documents(grokparsefailure) in elasticsearch from logstash. I have deleted all those documents which are around 2million out of 90days data. This is going to be regular process with only few thousands of docs. Now I am wondering, its already more than few days but I still can not see memory is reclaimed. I have added "indices.store.throttle.max\_bytes\_per\_sec" : "100mb" to cluster but no use. I have already tried forcemerge on 1month data and didn't try that on another 2months data. I understand that segments should merge so that deleted documents memory will be reclaimed. But When it will happen. Could you please anybody help me in this as we want to see reclaimed memory as early as possible. Thanks.  
ES:5.2.1  
Logstash:5.2.1  
Kibana:5.2.1

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 6, 2017, 8:56pm UTC](https://discuss.elastic.co/t/reclaim-deleted-documents-memory-in-elasticsearch/103079/2 "2017-10-06T20:56:29Z")

</div>

It's not memory that it uses, it's disk. Merges happen automatically but you can call a force merge too.

Applying that setting has nothing to do with what you want though.

---

<div class="post-metadata">

### Author: ![Manikanth\_Reddy](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Manikanth\_Reddy](https://discuss.elastic.co/u/Manikanth_Reddy)
#### Post date: [October 6, 2017, 9:20pm UTC](https://discuss.elastic.co/t/reclaim-deleted-documents-memory-in-elasticsearch/103079/3 "2017-10-06T21:20:54Z")

</div>

Thanks @warkolm for the quick response. My intention is to disk size only. I have tried force merge on one month data. But I would like to know more about that automatic process like configuring any settings. May I know, is there any chance we can expedite that automatic merging. Thanks.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 6, 2017, 9:29pm UTC](https://discuss.elastic.co/t/reclaim-deleted-documents-memory-in-elasticsearch/103079/4 "2017-10-06T21:29:22Z")

</div>

> Merges happen automatically but you can call a force merge too.

As per above these are your best options.

---

<div class="post-metadata">

### Author: ![Manikanth\_Reddy](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Manikanth\_Reddy](https://discuss.elastic.co/u/Manikanth_Reddy)
#### Post date: [October 6, 2017, 9:38pm UTC](https://discuss.elastic.co/t/reclaim-deleted-documents-memory-in-elasticsearch/103079/5 "2017-10-06T21:38:01Z")

</div>

Thanks @warkolm for the quick help 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 3, 2017, 9:38pm UTC](https://discuss.elastic.co/t/reclaim-deleted-documents-memory-in-elasticsearch/103079/6 "2017-11-03T21:38:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
