# Delete index using the connector

**URL:** <https://discuss.elastic.co/t/delete-index-using-the-connector/26969>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [August 6, 2015, 1:01pm UTC](https://discuss.elastic.co/t/delete-index-using-the-connector/26969 "2015-08-06T13:01:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RSiebeling](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RSiebeling](https://discuss.elastic.co/u/RSiebeling)\
**Post date:** [August 6, 2015, 1:01pm UTC](https://discuss.elastic.co/t/delete-index-using-the-connector/26969/1 "2015-08-06T13:01:10Z")

</div>

Hi,

following up on my previous question in the topic "delete from index"  
how can I delete an index using the connector?

@Costin, you said do it manually but how should I do this, speak to the REST service or can I use the connector for this? Is it's possible to use the connector how should I do that?

thanks in advance,  
Richard

---

<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 7, 2015, 10:36am UTC](https://discuss.elastic.co/t/delete-index-using-the-connector/26969/2 "2015-08-07T10:36:50Z")

</div>

`curl -XDELETE ES_HOST:9200/INDEX_NAME` is all you need.

---

<div class="post-metadata">

**Author:** ![RSiebeling](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RSiebeling](https://discuss.elastic.co/u/RSiebeling)\
**Post date:** [August 7, 2015, 11:09am UTC](https://discuss.elastic.co/t/delete-index-using-the-connector/26969/3 "2015-08-07T11:09:49Z")

</div>

thanks I’ll do that

---

<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 7, 2015, 11:19am UTC](https://discuss.elastic.co/t/delete-index-using-the-connector/26969/4 "2015-08-07T11:19:11Z")

</div>

Dunno how to do it with the connector though sorry!

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [August 13, 2015, 7:35pm UTC](https://discuss.elastic.co/t/delete-index-using-the-connector/26969/5 "2015-08-13T19:35:37Z")

</div>

The connector does not expose `DELETE` to the user directly. It is supported though through SparkSQL for example (depending on the `SaveMode` used).

---

<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 6, 2017, 1:27pm UTC](https://discuss.elastic.co/t/delete-index-using-the-connector/26969/6 "2017-07-06T13:27:42Z")

</div>


