Configurations setting does not restric delete of all indices

ES version: 2.2.0
Java 1.8.0_74-b02
OS: 3.16.0-60-lowlatency (Ubuntu 14.04)

Expected behavior, it should not delete all indices when the configuration setting action.disable_delete_all_indices is set to true.

Configuration setting in file elasticsearch.yml
action.disable_delete_all_indices: true.

root@es-thr-chef-m01:/# curl -XPUT 'http://localhost:9200/customer?pretty'
{
"acknowledged" : true
}
root@es-thr-chef-m01:/# curl -XDELETE 'http://localhost:9200/*?pretty'
{
"acknowledged" : true
}
root@es-thr-chef-m01:/# curl 'http://localhost:9200/_cat/indices?v'
health status index pri rep docs.count docs.deleted store.size pri.store.size

(All indexes deleted)

Did you restart Elasticsearch after applying the setting?

yes.

Repeated again:
root@es-thr-chef-m01:/# service elasticsearch stop

  • Stopping Elasticsearch Server [ OK ]
    root@es-thr-chef-m01:/# service elasticsearch start
  • Starting Elasticsearch Server [ OK ]
    root@es-thr-chef-m01:/# curl 'localhost:9200/_cat/health?v'
    epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
    1457386968 21:42:48 es-test-chef green 11 5 0 0 0 0 0 0 - 100.0%
    root@es-thr-chef-m01:/# curl -XPUT 'http://localhost:9200/customer?pretty'
    {
    "acknowledged" : true
    }
    root@es-thr-chef-m01:/# curl 'http://localhost:9200/_cat/indices?v'
    health status index pri rep docs.count docs.deleted store.size pri.store.size
    green open customer 5 1 0 0 1.2kb 650b
    root@es-thr-chef-m01:/# curl -XDELETE 'http://localhost:9200/*?pretty'
    {
    "acknowledged" : true
    }

From command: curl -XGET 'http://localhost:9200/_nodes/es-thr-chef-m01/settings?pretty'
....snip...
"name" : "es-thr-chef-m01",
"action" : {
"disable_delete_all_indices" : "true"
},
..snip...