# How to delete or close oldest indices

**URL:** https://discuss.elastic.co/t/how-to-delete-or-close-oldest-indices/26785
**Category:** Elasticsearch
**Created:** [August 4, 2015, 9:21am UTC](https://discuss.elastic.co/t/how-to-delete-or-close-oldest-indices/26785 "2015-08-04T09:21:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![syakirharis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syakirharis/32/4011_2.png) [@syakirharis](https://discuss.elastic.co/u/syakirharis)
#### Post date: [August 4, 2015, 9:21am UTC](https://discuss.elastic.co/t/how-to-delete-or-close-oldest-indices/26785/1 "2015-08-04T09:21:16Z")

</div>

I am so noob, even when I try to list the indices using the command

curl 'localhost:9200/\_cat/indices?v'

it keeps on displaying this message

curl: (7) Failed to connect to localhost port 9200: Connection refused

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [August 4, 2015, 9:50am UTC](https://discuss.elastic.co/t/how-to-delete-or-close-oldest-indices/26785/2 "2015-08-04T09:50:43Z")

</div>

Some possible causes:

- ES isn't running.
- ES is running but on another port than 9200.
- ES is running on port 9200 but doesn't listen on the loopback interface.
- ES is running on port 9200 and listens on the loopback interface but there's a firewall blocking the access.

---

<div class="post-metadata">

### Author: ![syakirharis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syakirharis/32/4011_2.png) [@syakirharis](https://discuss.elastic.co/u/syakirharis)
#### Post date: [August 4, 2015, 10:03am UTC](https://discuss.elastic.co/t/how-to-delete-or-close-oldest-indices/26785/3 "2015-08-04T10:03:45Z")

</div>

can you teach me about loopback interface? 😊

---

<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: [August 4, 2015, 10:36pm UTC](https://discuss.elastic.co/t/how-to-delete-or-close-oldest-indices/26785/4 "2015-08-04T22:36:28Z")

</div>

Loopback is 127.0.0.1, generally it's the interface called `lo`.

---

<div class="post-metadata">

### Author: ![mosiddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mosiddi/32/577_2.png) [@mosiddi](https://discuss.elastic.co/u/mosiddi)
#### Post date: [August 5, 2015, 4:49am UTC](https://discuss.elastic.co/t/how-to-delete-or-close-oldest-indices/26785/5 "2015-08-05T04:49:50Z")

</div>

are u able to just go to [http://localhost:9200](http://localhost:9200)

---

<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, 11:57pm UTC](https://discuss.elastic.co/t/how-to-delete-or-close-oldest-indices/26785/6 "2017-07-05T23:57:22Z")

</div>


