The provided expression [.kibana] matches an alias, specify the corresponding concrete indices instead


I am trying to remove .kibana index, but when I do that I am getting following error

$ curl -XDELETE localhost:9200/.kibana 

{
	"error": {
		"root_cause": [{
			"type": "illegal_argument_exception",
			"reason": "The provided expression [.kibana] matches an alias, specify the corresponding concrete indices instead."
		}],
		"type": "illegal_argument_exception",
		"reason": "The provided expression [.kibana] matches an alias, specify the corresponding concrete indices instead."
	},
	"status": 400
}

1 Answer

3 years ago by

.kibana is an alias but not the actual index name.

hit the URL http://localhost:9200/.kibana

If you seesometing like following

Then as you can see .kibana_1 is the actual index name. So you should delete with that like following

$curl -XDELETE localhost:9200/.kibana_1
{"acknowledged":true}

This deletes the index

3 years ago by Karthik Divi