# Zero Disk space

**URL:** <https://discuss.elastic.co/t/zero-disk-space/55473>\
**Category:** Elasticsearch\
**Created:** [July 14, 2016, 5:58am UTC](https://discuss.elastic.co/t/zero-disk-space/55473 "2016-07-14T05:58:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avi\_Kesselr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avi_kesselr/32/9795_2.png) [@Avi\_Kesselr](https://discuss.elastic.co/u/Avi_Kesselr)\
**Post date:** [July 14, 2016, 5:58am UTC](https://discuss.elastic.co/t/zero-disk-space/55473/1 "2016-07-14T05:58:59Z")

</div>

Hello,  
We are using Elastic for a year now, and we're very pleased about it.  
We have 2 nodes sitting on different servers with estimated size of 250GB of data sitting one index with 6 shards each.

every now and then we will run out of disk space and I would delete some doc's and run the optimize with only\_expunge\_deletes=true command.  
but now we reached a point were that command needs addition disk space to make the lucene index marge.  
So it failed on one of our nodes 😕, but the good news is that we do succeeded in the other node and right now our stat is Yellow.

My question is :  
Because the failed node has no disk space can I manually delete shards folders, hopping that the working node will reallocate the missing shard (which was already space reduced) back ?  
If not which files can I delete in order to give the miserable node enough space to recover and complete the optimize command ?

Thanks in advance.

---

<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:** [July 14, 2016, 6:12am UTC](https://discuss.elastic.co/t/zero-disk-space/55473/2 "2016-07-14T06:12:01Z")

</div>

> [@Avi\_Kesselr](#):
>
> Because the failed node has no disk space can I manually delete shards folders, hopping that the working node will reallocate the missing shard (which was already space reduced) back ?

Yes but it's dangerous.

Ideally you should add more disk, or more nodes, or alter your indexing structure to let you delete old data.

---

<div class="post-metadata">

**Author:** ![Avi\_Kesselr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avi_kesselr/32/9795_2.png) [@Avi\_Kesselr](https://discuss.elastic.co/u/Avi_Kesselr)\
**Post date:** [July 14, 2016, 6:41am UTC](https://discuss.elastic.co/t/zero-disk-space/55473/3 "2016-07-14T06:41:00Z")

</div>

> [@warkolm](#):
>
> Yes but it's dangerous.

What could happen if I delete for example the folder "0" under the ..\nodes\indices{indexname}\ ?

---

<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:** [July 14, 2016, 9:02am UTC](https://discuss.elastic.co/t/zero-disk-space/55473/4 "2016-07-14T09:02:57Z")

</div>

You lose that shard from that node.

---

<div class="post-metadata">

**Author:** ![Avi\_Kesselr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avi_kesselr/32/9795_2.png) [@Avi\_Kesselr](https://discuss.elastic.co/u/Avi_Kesselr)\
**Post date:** [July 14, 2016, 9:23am UTC](https://discuss.elastic.co/t/zero-disk-space/55473/5 "2016-07-14T09:23:14Z")

</div>

> [@warkolm](#):
>
> You lose that shard from that node.

But I will get it's replica from the other node right ?

---

<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:** [July 14, 2016, 9:23am UTC](https://discuss.elastic.co/t/zero-disk-space/55473/6 "2016-07-14T09:23:41Z")

</div>

Assuming there is one, yes.

---

<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:** [July 5, 2017, 10:35pm UTC](https://discuss.elastic.co/t/zero-disk-space/55473/7 "2017-07-05T22:35:47Z")

</div>


