Hi everyone I have 100 index into my elasticsearch and I want to delete them with one query. They all begin with myindex:
myindex-1
myindex-2
myindex-3
myindex-4
.
.
.
myindex-100
when I try this query, it does not work:
curl -XDELETE http://localhost:9200/myindex*
I get:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Wildcard expressions or all indices are not allowed"}],"type":"illegal_argument_exception","reason":"Wildcard expressions or all indices are not allowed"},"status":400}
Do you have any idea?
You could use The following in kibana dev tool:
PUT /_cluster/settings
{
"transient": {
"action.destructive_requires_name":false
}
}