A setting called: action.disable_delete_all_indices
(defaults to false
) that can be set to true
in order to disable deleting all indices in a single API call.
curl -X DELETE localhost:9200
It would, obviously, be a very good idea to set this as false
in a production elasticsearch.yml
:)
EDIT: Updated wording