# Disk space /var

**URL:** <https://discuss.elastic.co/t/disk-space-var/148369>\
**Category:** Elasticsearch\
**Created:** [September 12, 2018, 6:57pm UTC](https://discuss.elastic.co/t/disk-space-var/148369 "2018-09-12T18:57:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandha\_88](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@nandha\_88](https://discuss.elastic.co/u/nandha_88)\
**Post date:** [September 12, 2018, 6:57pm UTC](https://discuss.elastic.co/t/disk-space-var/148369/1 "2018-09-12T18:57:16Z")

</div>

Hi,

The var folder is full ELK server. fully indices and please tell a method to remove it

/dev/sda1 950M 181M 770M 19% /boot  
/dev/mapper/rhel\_-var 187G 174G 13G 94% /var  
tmpfs 3.2G 0 3.2G 0% /run/user/0  
[root@test /var/lib/elasticsearch/nodes/0/indices]# pwd  
/var/lib/elasticsearch/nodes/0/indices  
[root@test/var/lib/elasticsearch/nodes/0/indices]# cd ..  
[root@test /var/lib/elasticsearch/nodes/0]# du -sh \*  
160G indices  
0 node.lock  
64K \_state

[root@test /var/lib/elasticsearch/nodes/0]# cd indices/  
[root@test /var/lib/elasticsearch/nodes/0/indices]# ls -l  
total 0  
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:01 0A4uez4xRTuoaYUd6POzPQ  
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0bpeo8rNQHS9nWFwoZBw\_w  
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0HJl627SQfeSm500PBaArQ  
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:01 0Il9IXh2QQ673rlFnnmbWw  
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:01 0\_IotDmrTJGRKFp6Em0i4g  
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0LSCvgsxQY-sbdDfElHiIw  
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0qDtei2ZRi-rsdDmNz3WHA  
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0RIug2vcSSW7XWl424wtHA

---

<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:** [September 12, 2018, 8:24pm UTC](https://discuss.elastic.co/t/disk-space-var/148369/2 "2018-09-12T20:24:46Z")

</div>

You need to use the Elasticsearch APIs to delete indices you no longer want.

---

<div class="post-metadata">

**Author:** ![nandha\_88](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@nandha\_88](https://discuss.elastic.co/u/nandha_88)\
**Post date:** [September 14, 2018, 4:04pm UTC](https://discuss.elastic.co/t/disk-space-var/148369/3 "2018-09-14T16:04:43Z")

</div>

Thanks Warklom

curl -XGET [http://localhost:9200/\_cat/indices?v](http://localhost:9200/_cat/indices?v)  
curl -XDELETE [http://localhost:9200/logstash-date](http://localhost:9200/logstash-date)

This two commands helped me to remove the indices

REgards  
Nandh

---

<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:** [October 12, 2018, 4:04pm UTC](https://discuss.elastic.co/t/disk-space-var/148369/4 "2018-10-12T16:04:57Z")

</div>

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