# Elasticsearch 5.2.2 disk usage

**URL:** <https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394>\
**Category:** Elasticsearch\
**Created:** [October 22, 2018, 11:57am UTC](https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394 "2018-10-22T11:57:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gwince/32/36779_2.png) [@gwince](https://discuss.elastic.co/u/gwince)\
**Post date:** [October 22, 2018, 11:57am UTC](https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394/1 "2018-10-22T11:57:01Z")

</div>

We have a 3node ES cluster, and free disk space has become an issue over the weekend. We don't have the ability at the moment to add any more capacity, so we're looking at what we can remove.

We've audited our indices and set them to delete, and our expectation was that the disk apace would free up automatically, but it did not.

As a next step, we restarted ES on one of the nodes, and this also made no difference,

Lastly, we ran a forcemerge (per [this article, and many like it](https://stackoverflow.com/questions/20608417/elasticsearch-how-to-free-store-size-after-deleting-documents)), and this has also not made a difference.

Can anyone offer any guidance on how we can force a cleanup job of the deleted items, please?

---

<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 23, 2018, 1:56am UTC](https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394/2 "2018-10-23T01:56:59Z")

</div>

How did you delete the indices?

---

<div class="post-metadata">

**Author:** ![gwince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gwince/32/36779_2.png) [@gwince](https://discuss.elastic.co/u/gwince)\
**Post date:** [October 23, 2018, 8:43am UTC](https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394/3 "2018-10-23T08:43:28Z")

</div>

Hi @warkolm,

We used DELETE in the API to remove the oldest/un-needed indices.

---

<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 23, 2018, 8:51am UTC](https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394/4 "2018-10-23T08:51:27Z")

</div>

Once you remove them with the APIs they should no longer exist on disk at all. A force merge will not do anything, it's not delayed.

If you are still seeing disk issues, perhaps it is not the indices causing it?

---

<div class="post-metadata">

**Author:** ![gwince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gwince/32/36779_2.png) [@gwince](https://discuss.elastic.co/u/gwince)\
**Post date:** [October 23, 2018, 11:23am UTC](https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394/5 "2018-10-23T11:23:53Z")

</div>

We've put our collective heads together and found the root cause.

In the last few months, much more data has been going into the cluster, so we're not able to keep as much data as we did before.

Thanks very much for your help. 🙂

---

<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 23, 2018, 8:45pm UTC](https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394/6 "2018-10-23T20:45:10Z")

</div>

You should install X-Pack and enable Monitoring. It's free and will give you good insights into your cluster.

---

<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 20, 2018, 8:55pm UTC](https://discuss.elastic.co/t/elasticsearch-5-2-2-disk-usage/153394/7 "2018-11-20T20:55:29Z")

</div>

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