# Flush cache before deleting an index or not?

**URL:** <https://discuss.elastic.co/t/flush-cache-before-deleting-an-index-or-not/60000>\
**Category:** Elasticsearch\
**Created:** [September 7, 2016, 3:13pm UTC](https://discuss.elastic.co/t/flush-cache-before-deleting-an-index-or-not/60000 "2016-09-07T15:13:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![renego](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@renego](https://discuss.elastic.co/u/renego)\
**Post date:** [September 7, 2016, 3:13pm UTC](https://discuss.elastic.co/t/flush-cache-before-deleting-an-index-or-not/60000/1 "2016-09-07T15:13:04Z")

</div>

Hi! I am recreating every day my whole index. I am creating complete new index and put all the data in it. Delete the old one and set the new one as active. Should I clear the cache of the old index before I delete it or the delete command is doing this automatically ?

Thanks  
Nik

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [September 7, 2016, 5:33pm UTC](https://discuss.elastic.co/t/flush-cache-before-deleting-an-index-or-not/60000/2 "2016-09-07T17:33:00Z")

</div>

Deletion of an index should release all associated with this index data structures including cache.

---

<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:** [July 5, 2017, 10:22pm UTC](https://discuss.elastic.co/t/flush-cache-before-deleting-an-index-or-not/60000/3 "2017-07-05T22:22:00Z")

</div>


