# How to delete index through curl on a secure cluster

**URL:** <https://discuss.elastic.co/t/how-to-delete-index-through-curl-on-a-secure-cluster/158578>\
**Category:** Kibana\
**Created:** [November 28, 2018, 1:41pm UTC](https://discuss.elastic.co/t/how-to-delete-index-through-curl-on-a-secure-cluster/158578 "2018-11-28T13:41:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [November 28, 2018, 1:41pm UTC](https://discuss.elastic.co/t/how-to-delete-index-through-curl-on-a-secure-cluster/158578/1 "2018-11-28T13:41:54Z")

</div>

I know this is probably a basic question. I just cant seem to find the answer. I know I need to include the username and password -u:p but I am not sure of the exact format for the command. I am trying to delete the .kibana-2 index after upgrading to 6.5.1.

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [November 28, 2018, 3:45pm UTC](https://discuss.elastic.co/t/how-to-delete-index-through-curl-on-a-secure-cluster/158578/2 "2018-11-28T15:45:38Z")

</div>

Hey @bigdamhero, to only delete the .kibana-2 index, you'd execute the following CURL, substituting your own username/password and URL to access Elasticsearch:

```auto
curl -XDELETE http://localhost:9200/.kibana-2 -u elastic:changeme

```

---

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [November 28, 2018, 3:47pm UTC](https://discuss.elastic.co/t/how-to-delete-index-through-curl-on-a-secure-cluster/158578/3 "2018-11-28T15:47:12Z")

</div>

Rockin man, thank you!!

---

<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:** [December 26, 2018, 3:47pm UTC](https://discuss.elastic.co/t/how-to-delete-index-through-curl-on-a-secure-cluster/158578/4 "2018-12-26T15:47:27Z")

</div>

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