# Not able to use "delete\_indices" for curator\_cli

**URL:** <https://discuss.elastic.co/t/not-able-to-use-delete-indices-for-curator-cli/151490>\
**Category:** Elasticsearch\
**Created:** [October 8, 2018, 3:34pm UTC](https://discuss.elastic.co/t/not-able-to-use-delete-indices-for-curator-cli/151490 "2018-10-08T15:34:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinay\_Karajagi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinay_karajagi/32/36259_2.png) [@Vinay\_Karajagi](https://discuss.elastic.co/u/Vinay_Karajagi)\
**Post date:** [October 8, 2018, 3:34pm UTC](https://discuss.elastic.co/t/not-able-to-use-delete-indices-for-curator-cli/151490/1 "2018-10-08T15:34:17Z")

</div>

The following line gives - Error: No such command "delete\_indices"  
curator\_cli --host --port delete\_indices --filter\_list '[{"filtertype":"pattern","kind":"prefix","value":".watch\_history"}]'

As per curator\_cli --help it is stated that i should try delete-indices instead. But while using that I am getting the below error

CRITICAL Action must be one of ['snapshot', 'create\_index', 'index\_settings', 'rollover', 'forcemerge', 'cluster\_routing', 'replicas', 'delete\_indices', 'allocation', 'alias', 'restore', 'close', 'delete\_snapshots', 'open', 'shrink', 'reindex']

The versions that am using are:  
elasticsearch (6.3.1)  
elasticsearch-curator (5.5.4)

---

<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:** [October 8, 2018, 3:51pm UTC](https://discuss.elastic.co/t/not-able-to-use-delete-indices-for-curator-cli/151490/2 "2018-10-08T15:51:38Z")

</div>

It’s a recent issue that is related to a bump in the Click module that Curator uses for the command line. See [https://github.com/elastic/curator/issues/1279](https://github.com/elastic/curator/issues/1279)

---

<div class="post-metadata">

**Author:** ![Vinay\_Karajagi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinay_karajagi/32/36259_2.png) [@Vinay\_Karajagi](https://discuss.elastic.co/u/Vinay_Karajagi)\
**Post date:** [October 8, 2018, 5:35pm UTC](https://discuss.elastic.co/t/not-able-to-use-delete-indices-for-curator-cli/151490/3 "2018-10-08T17:35:01Z")

</div>

Thanks, was able to solve the issue by downgrading Click from 7.0 to 6.7

---

<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:** [November 5, 2018, 5:35pm UTC](https://discuss.elastic.co/t/not-able-to-use-delete-indices-for-curator-cli/151490/4 "2018-11-05T17:35:05Z")

</div>

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