# Delete the index for documents removed from the data source

**URL:** <https://discuss.elastic.co/t/delete-the-index-for-documents-removed-from-the-data-source/48468>\
**Category:** Elasticsearch\
**Created:** [April 26, 2016, 6:06pm UTC](https://discuss.elastic.co/t/delete-the-index-for-documents-removed-from-the-data-source/48468 "2016-04-26T18:06:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Al77056](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Al77056](https://discuss.elastic.co/u/Al77056)\
**Post date:** [April 26, 2016, 6:06pm UTC](https://discuss.elastic.co/t/delete-the-index-for-documents-removed-from-the-data-source/48468/1 "2016-04-26T18:06:42Z")

</div>

We have indexed all documents from a data source. Some of the documents in the data source are removed after the index was created. Unfortunately the data source does not provide information on the deleted documents. What is the best way to remove the indices corresponding to the deleted document?

---

<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:** [April 27, 2016, 5:46am UTC](https://discuss.elastic.co/t/delete-the-index-for-documents-removed-from-the-data-source/48468/2 "2016-04-27T05:46:09Z")

</div>

Probably to reindex everything into a new index.

---

<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:56pm UTC](https://discuss.elastic.co/t/delete-the-index-for-documents-removed-from-the-data-source/48468/3 "2017-07-05T22:56:07Z")

</div>

Closed on July 5, 2017, 10:56pm UTC


