# How to remove old data without losing kibana dashboard?

**URL:** https://discuss.elastic.co/t/how-to-remove-old-data-without-losing-kibana-dashboard/97676
**Category:** Elasticsearch
**Created:** [August 20, 2017, 7:28am UTC](https://discuss.elastic.co/t/how-to-remove-old-data-without-losing-kibana-dashboard/97676 "2017-08-20T07:28:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![elhamsadat](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elhamsadat](https://discuss.elastic.co/u/elhamsadat)
#### Post date: [August 20, 2017, 7:28am UTC](https://discuss.elastic.co/t/how-to-remove-old-data-without-losing-kibana-dashboard/97676/1 "2017-08-20T07:28:33Z")

</div>

Hi  
my elasticsearch server have limit storage and i had to remove ot archive old data from it. I removed some old data in path var/data/elasticsearch/node0/ but after restart kibana i had losed all of my dashboards and visualizes. Is there any way to archive old data from elastic without lising kibana configurations?

---

<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: [August 20, 2017, 3:57pm UTC](https://discuss.elastic.co/t/how-to-remove-old-data-without-losing-kibana-dashboard/97676/2 "2017-08-20T15:57:42Z")

</div>

Never, _ever_ touch the files in your `path.data` directory. You should only delete data from Elasticsearch using the API. To delete indices, you can use the `DELETE` REST request:

```auto
DELETE /my_index

```

For managing multiple indices, there is the [Elasticsearch Curator](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html) tool.

To delete data from _within_ indices, look into the delete\_by\_query tool.

---

<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: [September 17, 2017, 3:57pm UTC](https://discuss.elastic.co/t/how-to-remove-old-data-without-losing-kibana-dashboard/97676/3 "2017-09-17T15:57:42Z")

</div>

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