# Disk space full elasticsearch

**URL:** <https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037>\
**Category:** Elasticsearch\
**Created:** [February 19, 2020, 5:38pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037 "2020-02-19T17:38:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilija\_Angeloski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ilija_angeloski/32/53754_2.png) [@Ilija\_Angeloski](https://discuss.elastic.co/u/Ilija_Angeloski)\
**Post date:** [February 19, 2020, 5:38pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/1 "2020-02-19T17:38:50Z")

</div>

After I deleted all the indices the disk space is still almost full, no place is freed up. I tried ```  
curl -XPOST '[http://localhost:9200/\_forcemerge?only\_expunge\_deletes=true](http://localhost:9200/_forcemerge?only_expunge_deletes=true)', but still the disk has same amount. Is there any place where the indices are stored locally so i can delete them? I had almost half disk space free, but when I started to use elasticsearch it got almost full real fast. How to reclaim the disk space, any solution for this ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2020, 6:11pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/2 "2020-02-19T18:11:29Z")

</div>

Which command did you use to delete the indices?  
Are you sure it's elasticsearch data dir which is filling your space?

---

<div class="post-metadata">

**Author:** ![Ilija\_Angeloski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ilija_angeloski/32/53754_2.png) [@Ilija\_Angeloski](https://discuss.elastic.co/u/Ilija_Angeloski)\
**Post date:** [February 19, 2020, 6:17pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/3 "2020-02-19T18:17:59Z")

</div>

Because I dont have any instalation, I deleted them from extracted elasticsearch folder ( data-\> nodes-\>0 -\> indices). Im totally sure elasticsearch is filling my space.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2020, 7:18pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/4 "2020-02-19T19:18:02Z")

</div>

So you didn't use the

```
DELETE index 

```

API ?

Why this?

If you don't care anything about your data, just remove the data dir and start elasticsearch.

---

<div class="post-metadata">

**Author:** ![Ilija\_Angeloski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ilija_angeloski/32/53754_2.png) [@Ilija\_Angeloski](https://discuss.elastic.co/u/Ilija_Angeloski)\
**Post date:** [February 19, 2020, 7:29pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/5 "2020-02-19T19:29:55Z")

</div>

No I did not use DELETE Index. Where I can find data dir ? I am new to elasticsearch so Im kinda confused why is this happening. I cant even create new index because I dont have space in my disk. A already deleted all indices indices in data dir ( if data-\> nodes-\>0 -\> indices is the path of that )

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2020, 7:57pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/6 "2020-02-19T19:57:34Z")

</div>

Data dir is the one you mentioned yourself:

> **data** -\> nodes-\>0 -\> indices

Remove it.

But never ever do that again. I mean some manual commands. Use the API instead.

---

<div class="post-metadata">

**Author:** ![Ilija\_Angeloski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ilija_angeloski/32/53754_2.png) [@Ilija\_Angeloski](https://discuss.elastic.co/u/Ilija_Angeloski)\
**Post date:** [February 19, 2020, 8:06pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/7 "2020-02-19T20:06:56Z")

</div>

Already did, still the disk is full, deleted even some big programs in my laptop, but when I run elasticsearch/logstash it fills it up again. Maybe I will need to format laptop, i tried everything and cant find solution

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2020, 8:16pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/8 "2020-02-19T20:16:11Z")

</div>

It's unclear what you are doing/seeing.  
Which version are you using?

---

<div class="post-metadata">

**Author:** ![Ilija\_Angeloski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ilija_angeloski/32/53754_2.png) [@Ilija\_Angeloski](https://discuss.elastic.co/u/Ilija_Angeloski)\
**Post date:** [February 19, 2020, 8:27pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/9 "2020-02-19T20:27:11Z")

</div>

I was testing a lot of data, and I ingested I lot of csv files through logstash, I had maybe 30 indices. I had around 150gb free space, now I have only 8gb space left on the disk. I thought if I delete the indices through data dir, it will free up the space on my disk but even after deleting, the disk is still full. So they are still stored somewhere, and I cant find where. I tried different solutions that I read up but its still the same. I have now 0 indices, 0 shards. Disk still full. Maybe it keeps logs from logstash somewhere because I used stdout ruby debug codec, I dont know, but something is keeping up the memory... I use version 7.0.0

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e47848b33fdb5c706bd0072d4d62d328081f5110.png)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2020, 8:59pm UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/10 "2020-02-19T20:59:44Z")

</div>

So it's not elasticsearch then.

That being said, I'd not use 7.0.0 but 7.6.0.  
Many things have been fixed since 7.0.

Then may be look at logstash dir indeed.  
I'm sure you can find which dir contains so many data with a `du -s` command or `df -k`.

---

<div class="post-metadata">

**Author:** ![slavo](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@slavo](https://discuss.elastic.co/u/slavo)\
**Post date:** [February 23, 2020, 11:00am UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/11 "2020-02-23T11:00:35Z")

</div>

Did you try to restart elastic? If you deleted the files directly on the disk elastic may still hold the files open. They won't free the space until handles are released. If you used elastic API this wouldn't be a problem.

---

<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:** [March 22, 2020, 11:00am UTC](https://discuss.elastic.co/t/disk-space-full-elasticsearch/220037/12 "2020-03-22T11:00:35Z")

</div>

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