# Index gets deleted right after it was created

**URL:** <https://discuss.elastic.co/t/index-gets-deleted-right-after-it-was-created/308242>\
**Category:** Elasticsearch\
**Created:** [June 27, 2022, 11:40am UTC](https://discuss.elastic.co/t/index-gets-deleted-right-after-it-was-created/308242 "2022-06-27T11:40:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moor](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@moor](https://discuss.elastic.co/u/moor)\
**Post date:** [June 27, 2022, 11:40am UTC](https://discuss.elastic.co/t/index-gets-deleted-right-after-it-was-created/308242/1 "2022-06-27T11:40:21Z")

</div>

Hi there,  
I am running a single-node ES v. 7.17.3 instance in an environment not accessible from internet.

I also have a full text crawler service (heritrix) that populates an index. Right after the crawling job finishes, there is this ES routine running and vanishing the entire index (data and index itself).

```auto
[2022-06-27T13:16:29,064][INFO][o.e.c.m.MetadataDeleteIndexService] [foo-web] [foo_search_de_2022-06-27-10-08-36/XSu8OTR-Q86wMVhlR1nn8A] deleting index

```

I've tried to activate the audit feature with the hope to find out who or what is calling this service but it seems like it is done internally by ES.

The Security feature is no enabled but as I've mentioned it a hermetic environment and no signs of external trigger of the MetadataDeleteIndexService.

Regards,  
moor

---

<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:** [June 28, 2022, 12:47am UTC](https://discuss.elastic.co/t/index-gets-deleted-right-after-it-was-created/308242/2 "2022-06-28T00:47:21Z")

</div>

Welcome to our community! 😃

The only time that Elasticsearch will delete indices is if you have an [ILM](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html) policy that does it. Otherwise, any deletes will be an external request.

---

<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 26, 2022, 12:47am UTC](https://discuss.elastic.co/t/index-gets-deleted-right-after-it-was-created/308242/3 "2022-07-26T00:47:29Z")

</div>

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