# Delete old indices from x-pack security enabled elasticsearch using curator

**URL:** <https://discuss.elastic.co/t/delete-old-indices-from-x-pack-security-enabled-elasticsearch-using-curator/121008>\
**Category:** Elasticsearch\
**Created:** [February 22, 2018, 8:24am UTC](https://discuss.elastic.co/t/delete-old-indices-from-x-pack-security-enabled-elasticsearch-using-curator/121008 "2018-02-22T08:24:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chamika\_Vishmal](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@Chamika\_Vishmal](https://discuss.elastic.co/u/Chamika_Vishmal)\
**Post date:** [February 22, 2018, 8:24am UTC](https://discuss.elastic.co/t/delete-old-indices-from-x-pack-security-enabled-elasticsearch-using-curator/121008/1 "2018-02-22T08:24:23Z")

</div>

I'm trying to delete old indices from x-pack security enabled elasticsearch cluster. In curator config file I have added username and password options under client category. But I'm receiving this error when trying to delete indexes using curator.

Schema error: extra keys not allowed @ data['client']['username']  
Configuration: Client Configuration: Location: full configuration dictionary: Bad Value: "{'hosts': ['127.0.0.1'], 'port': 9200, 'username': 'xxxxx', 'password': 'xxxxxxxx', 'use\_ssl': False, 'ssl\_no\_validate': False, 'timeout': 30, 'master\_only': False}", extra keys not allowed @ data['client']['username']. Check configuration file.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 26, 2018, 10:22pm UTC](https://discuss.elastic.co/t/delete-old-indices-from-x-pack-security-enabled-elasticsearch-using-curator/121008/2 "2018-02-26T22:22:25Z")

</div>

Curator doesn't currently use `username` and `password` separately. See the [`http_auth`](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.4/configfile.html#http_auth) parameter.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 26, 2018, 10:22pm UTC](https://discuss.elastic.co/t/delete-old-indices-from-x-pack-security-enabled-elasticsearch-using-curator/121008/3 "2018-03-26T22:22:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
