# \[Path.data\]

**URL:** <https://discuss.elastic.co/t/path-data/250177>\
**Category:** Elasticsearch\
**Created:** [September 28, 2020, 12:14pm UTC](https://discuss.elastic.co/t/path-data/250177 "2020-09-28T12:14:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume\_RENARD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guillaume_renard/32/37369_2.png) [@Guillaume\_RENARD](https://discuss.elastic.co/u/Guillaume_RENARD)\
**Post date:** [September 28, 2020, 12:14pm UTC](https://discuss.elastic.co/t/path-data/250177/1 "2020-09-28T12:14:04Z")

</div>

Hello,  
I have to path.data  
`path.data: ["/datassd/elasticsearch", "/data/elasticsearch"]`  
but one is quite small and always full, I want ot not use it anymore and to only use one.  
is it possible to

- remove it from conf and restart ? If so, what will happen ? Will data be available and no more will be added so in some time I can get rid of it entirelry?
- can do a dynamic update somewhere to force data to be writton only one one ?

Thanks for your help

Bonus question, I have the path of the shard but I'm unable to get indexname / path easily (jq ?)  
`GET _stats/?level=shards`

---

<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:** [September 29, 2020, 3:32am UTC](https://discuss.elastic.co/t/path-data/250177/2 "2020-09-29T03:32:04Z")

</div>

You cannot tell a node to move data from one path to another. And if you remove the path then you will lose any data that resides in it.

You can;

- Remove all indices from the node, remove the path, restart and allow allocation back to it
- Take a snapshot, remove the node, restore the snapshot

---

<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:** [October 27, 2020, 3:32am UTC](https://discuss.elastic.co/t/path-data/250177/3 "2020-10-27T03:32:05Z")

</div>

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