# Deleting an index

**URL:** <https://discuss.elastic.co/t/deleting-an-index/41811>\
**Category:** Elasticsearch\
**Created:** [February 15, 2016, 5:19pm UTC](https://discuss.elastic.co/t/deleting-an-index/41811 "2016-02-15T17:19:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![w0lverine](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@w0lverine](https://discuss.elastic.co/u/w0lverine)\
**Post date:** [February 15, 2016, 5:19pm UTC](https://discuss.elastic.co/t/deleting-an-index/41811/1 "2016-02-15T17:19:41Z")

</div>

I use the command:

> curl -XDELETE '[http://lcoalhost:9200/logstash-2016.02.12/](http://lcoalhost:9200/logstash-2016.02.12/)'

to delete my index and all I back is a new line without my file path and it does not delete my index. Any suggestionsI feel like this is an easy fix.

Resource:[Delete index API | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html)

UPDATE: using the --debug after about 3-5 minutes I get the folllowing back:

> url: (7) Failed to connect to lcoalhost port 9200: Connection timed out

But my elasticsearch is running.

---

<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 15, 2016, 5:56pm UTC](https://discuss.elastic.co/t/deleting-an-index/41811/2 "2016-02-15T17:56:58Z")

</div>

Typo: use localhost

---

<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:16pm UTC](https://discuss.elastic.co/t/deleting-an-index/41811/3 "2017-07-05T23:16:19Z")

</div>


