# Not able to delete ndex

**URL:** <https://discuss.elastic.co/t/not-able-to-delete-ndex/93269>\
**Category:** Elasticsearch\
**Created:** [July 15, 2017, 3:19pm UTC](https://discuss.elastic.co/t/not-able-to-delete-ndex/93269 "2017-07-15T15:19:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar1](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@kumar1](https://discuss.elastic.co/u/kumar1)\
**Post date:** [July 15, 2017, 3:19pm UTC](https://discuss.elastic.co/t/not-able-to-delete-ndex/93269/1 "2017-07-15T15:19:51Z")

</div>

Hi ,

Iam trying to delete index from elastic search in Cygwin tool .But getting this error below.

{"error":{"root\_cause":[{"type":"security\_exception","reason":"action [indices:admin/delete] requires authentication","header":{"WWW-Authenticate":"Basic realm="shield" charset="UTF-  
8""}}],"type":"security\_exception","reason":"action [indices:admin/delete] requires authentication","header":{"WWW-Authenticate":"Basic realm="shield" charset="UTF-8""}},"status":4

Can you let me know how to delete index.

Thanks

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [July 15, 2017, 3:31pm UTC](https://discuss.elastic.co/t/not-able-to-delete-ndex/93269/2 "2017-07-15T15:31:23Z")

</div>

> [@kumar1](#):
>
> requires authentication

It appears your Elasticsearch has security enabled. You will need to provide a username and password. If your Cygwin tool does not allow you to provide those, you will need to use a different tool.

---

<div class="post-metadata">

**Author:** ![kumar1](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@kumar1](https://discuss.elastic.co/u/kumar1)\
**Post date:** [July 15, 2017, 3:43pm UTC](https://discuss.elastic.co/t/not-able-to-delete-ndex/93269/3 "2017-07-15T15:43:18Z")

</div>

Thanks for the rply.

Iam using this command.

curl [https://93ae1796738abc7ae.eu-west-1.aws.found.io:9243/v2\_1464081736197](https://93ae1796738abc7ae.eu-west-1.aws.found.io:9243/v2_1464081736197) -XDELETE

Iam not added uname,password anywhere in This command.Can you suggest how to do this delete operation.

---

<div class="post-metadata">

**Author:** ![kumar1](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@kumar1](https://discuss.elastic.co/u/kumar1)\
**Post date:** [July 15, 2017, 3:50pm UTC](https://discuss.elastic.co/t/not-able-to-delete-ndex/93269/4 "2017-07-15T15:50:33Z")

</div>

oops..I've logged in with Heroku login's not with Elasic Search.Will it be the cause !

And to login to this Elastic search through command prompt, what is the command .Can you help me to login and to delete the index.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [July 15, 2017, 4:41pm UTC](https://discuss.elastic.co/t/not-able-to-delete-ndex/93269/5 "2017-07-15T16:41:51Z")

</div>

curl -u `username` -p https://....

It will prompt you for the password

---

<div class="post-metadata">

**Author:** ![kumar1](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@kumar1](https://discuss.elastic.co/u/kumar1)\
**Post date:** [July 16, 2017, 1:57pm UTC](https://discuss.elastic.co/t/not-able-to-delete-ndex/93269/6 "2017-07-16T13:57:23Z")

</div>

Thank you soooo much for your [support.It](http://support.It) work's now.

---

<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:** [August 13, 2017, 1:57pm UTC](https://discuss.elastic.co/t/not-able-to-delete-ndex/93269/7 "2017-08-13T13:57:35Z")

</div>

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