How to delete index through curl on a secure cluster


(Patrick) #1

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.


(Brandon Kobel) #2

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:

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

(Patrick) #3

Rockin man, thank you!!