# Curator 4 cli removing index attributes

**URL:** <https://discuss.elastic.co/t/curator-4-cli-removing-index-attributes/78778>\
**Category:** Elasticsearch\
**Created:** [March 16, 2017, 12:03am UTC](https://discuss.elastic.co/t/curator-4-cli-removing-index-attributes/78778 "2017-03-16T00:03:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pemontto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pemontto/32/3908_2.png) [@pemontto](https://discuss.elastic.co/u/pemontto)\
**Post date:** [March 16, 2017, 12:03am UTC](https://discuss.elastic.co/t/curator-4-cli-removing-index-attributes/78778/1 "2017-03-16T00:03:55Z")

</div>

We run a lot of basic curator operations on many clusters and were very glad to see the curator\_cli addition so we can avoid the overhead and complexity of managing a bunch of configuration files. One thing we haven't been able to do so far is to remove an allocation attribute. We have hot nodes demarcated with a `node_type` attribute set to `hot`. After 7 days we want to remove this requirement by setting the string to an empty value in the index. We can do this manually:

```
PUT /test-index/_settings
{
  "index.routing.allocation.require.node_type" : ""
}

```

When trying to do this with Curator it doesn't like being passed an empty value. And I can't seem to get around it:

```
[root@es-test ~]# curator_cli --host test-host --port 9204 allocation --key node_type --allocation_type require --value "" --filter_list '[{"filtertype": "pattern","kind": "regex","value": "test-index*"}]'
No value for "value" provided

```

I am aware I can use include and overwrite the value, but some nodes don't have any attributes at all which will exclude them. Any ideas?

---

<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:** [March 16, 2017, 1:34am UTC](https://discuss.elastic.co/t/curator-4-cli-removing-index-attributes/78778/2 "2017-03-16T01:34:46Z")

</div>

Coincidentally, this was requested just today: [https://github.com/elastic/curator/issues/906](https://github.com/elastic/curator/issues/906)

---

<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:** [April 13, 2017, 1:35am UTC](https://discuss.elastic.co/t/curator-4-cli-removing-index-attributes/78778/3 "2017-04-13T01:35:02Z")

</div>

Closed on April 13, 2017, 1:35am UTC

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