# CCR and deleted indices

**URL:** <https://discuss.elastic.co/t/ccr-and-deleted-indices/211116>\
**Category:** Elasticsearch\
**Created:** [December 9, 2019, 1:20pm UTC](https://discuss.elastic.co/t/ccr-and-deleted-indices/211116 "2019-12-09T13:20:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt\_db](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@matt\_db](https://discuss.elastic.co/u/matt_db)\
**Post date:** [December 9, 2019, 1:20pm UTC](https://discuss.elastic.co/t/ccr-and-deleted-indices/211116/1 "2019-12-09T13:20:56Z")

</div>

I am testing CCR and would like to know if it is possible to delete a follower index if the source index is deleted.

For example we create a new index in the remote cluster and our CCR auto follow pattern replicates it. The next day we create a new index and delete the previous one in the remote cluster. The new one is correctly replicated, but the old replicated index remains.

Is there a way to automate deletion of the replicated index?

Thanks

---

<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:** [January 6, 2020, 1:20pm UTC](https://discuss.elastic.co/t/ccr-and-deleted-indices/211116/2 "2020-01-06T13:20:57Z")

</div>

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