# Would Kibana preserve dashboards after deleting/recreating same index?

**URL:** <https://discuss.elastic.co/t/would-kibana-preserve-dashboards-after-deleting-recreating-same-index/125668>\
**Category:** Kibana\
**Created:** [March 26, 2018, 7:32pm UTC](https://discuss.elastic.co/t/would-kibana-preserve-dashboards-after-deleting-recreating-same-index/125668 "2018-03-26T19:32:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natalia\_Kuleniuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natalia_kuleniuk/32/43727_2.png) [@Natalia\_Kuleniuk](https://discuss.elastic.co/u/Natalia_Kuleniuk)\
**Post date:** [March 26, 2018, 7:32pm UTC](https://discuss.elastic.co/t/would-kibana-preserve-dashboards-after-deleting-recreating-same-index/125668/1 "2018-03-26T19:32:56Z")

</div>

Question about Kibana and ElasticSearch:

I have index with data, and I created some Kibana Dashboards and Visualization for my index. Everyday, I need to delete all existed data from my index and populate my ES index with new data that has exactly same schema (usually 5-10 MB of data per day).  
I am going to delete all the data and populate new data programmatically from my Java App. My question is after addin/deleting all data to my ES index, would Kibana preserve all visualizations so that I would not need to recreate them every days? I think, that it preserve, if I not deleting the index itself, only data. Is that right?

But what if I need to delete and create again whole index with same name/mapping but different data every day?Would Kibana preserve all my visualizations or I need to change and update Kibana Settings manually every day?

---

<div class="post-metadata">

**Author:** ![arisbanach](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Post date:** [March 26, 2018, 8:00pm UTC](https://discuss.elastic.co/t/would-kibana-preserve-dashboards-after-deleting-recreating-same-index/125668/2 "2018-03-26T20:00:43Z")

</div>

Have you tried making a time-based index pattern like `indexname-2018-03-26` and then configuring Kibana to use `indexname-*` as the pattern? Then you can automatically delete any old indices.

---

<div class="post-metadata">

**Author:** ![Natalia\_Kuleniuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natalia_kuleniuk/32/43727_2.png) [@Natalia\_Kuleniuk](https://discuss.elastic.co/u/Natalia_Kuleniuk)\
**Post date:** [March 27, 2018, 3:47am UTC](https://discuss.elastic.co/t/would-kibana-preserve-dashboards-after-deleting-recreating-same-index/125668/3 "2018-03-27T03:47:18Z")

</div>

Thanks for answering. But how can I automatically delete old indexes?

---

<div class="post-metadata">

**Author:** ![arisbanach](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Post date:** [March 27, 2018, 2:13pm UTC](https://discuss.elastic.co/t/would-kibana-preserve-dashboards-after-deleting-recreating-same-index/125668/4 "2018-03-27T14:13:32Z")

</div>

I'm guessing you'd have to do that with your code. I could be wrong though.

---

<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 24, 2018, 2:13pm UTC](https://discuss.elastic.co/t/would-kibana-preserve-dashboards-after-deleting-recreating-same-index/125668/5 "2018-04-24T14:13:33Z")

</div>

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