Not able to delete ndex

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.


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.

Thanks for the rply.

Iam using this command.


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

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.

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

It will prompt you for the password

Thank you soooo much for your support.It work's now.

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