# Graceful remove data path

**URL:** <https://discuss.elastic.co/t/graceful-remove-data-path/141312>\
**Category:** Elasticsearch\
**Created:** [July 24, 2018, 7:06am UTC](https://discuss.elastic.co/t/graceful-remove-data-path/141312 "2018-07-24T07:06:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![imehl](https://avatars.discourse-cdn.com/v4/letter/i/8797f3/32.png) [@imehl](https://discuss.elastic.co/u/imehl)\
**Post date:** [July 24, 2018, 7:06am UTC](https://discuss.elastic.co/t/graceful-remove-data-path/141312/1 "2018-07-24T07:06:20Z")

</div>

Hi,

how could I graceful remove one data.path (of multiple) of one node in a ES cluster?

Or another question: Can a move shards on disk/data.path level. So for example: Get all shards of node1:/path1 and move it to node2

---

<div class="post-metadata">

**Author:** ![imehl](https://avatars.discourse-cdn.com/v4/letter/i/8797f3/32.png) [@imehl](https://discuss.elastic.co/u/imehl)\
**Post date:** [July 24, 2018, 7:37am UTC](https://discuss.elastic.co/t/graceful-remove-data-path/141312/2 "2018-07-24T07:37:59Z")

</div>

Just figured out:

\_stats?level=shards shows me info about shard data path. So I could query all shards of the specific data path and do a /\_cluster/reroute:

```
"move" : {
        "index" : "index-name", "shard" : X,
        "from_node" : "nodeX", "to_node" : "nodeY"
}

```

until a data path is clear and then I can remove it in the config?

Is there any better/cleaner way?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 24, 2018, 9:58pm UTC](https://discuss.elastic.co/t/graceful-remove-data-path/141312/3 "2018-07-24T21:58:30Z")

</div>

> [@imehl](#):
>
> Is there any better/cleaner way?

Nope, but it does get asked from time to time.  
Do you want to raise a feature request for something to handle this here - [Issues · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues)?

---

<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:** [August 21, 2018, 9:58pm UTC](https://discuss.elastic.co/t/graceful-remove-data-path/141312/4 "2018-08-21T21:58:30Z")

</div>

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