# How to turn off automatic deletion upon expiration of data / index?

**URL:** <https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736>\
**Category:** Elasticsearch\
**Created:** [October 12, 2020, 8:48am UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736 "2020-10-12T08:48:43Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 12, 2020, 8:48am UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/1 "2020-10-12T08:48:43Z")

</div>

How to turn off automatic deletion upon expiration of data / index?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 12, 2020, 11:51am UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/2 "2020-10-12T11:51:34Z")

</div>

Welcome!

There's no automatic deletion of data/index unless you defined something.

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 12, 2020, 1:01pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/3 "2020-10-12T13:01:28Z")

</div>

Please tell me what I can do to shut down this opportunity, it's about the expiring data

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 12, 2020, 1:22pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/4 "2020-10-12T13:22:24Z")

</div>

The only data I can think of in Elasticsearch that gets deleted automatically is monitoring data as this has a defined retention period with the Basic license. If s this what you are referring to? If not, what data is being deleted?

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 12, 2020, 1:40pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/5 "2020-10-12T13:40:46Z")

</div>

It's about information that automatically gathers from websites and social networks that I'm interested

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 12, 2020, 3:36pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/6 "2020-10-12T15:36:05Z")

</div>

That should not be automatically deleted.

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 12, 2020, 4:24pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/7 "2020-10-12T16:24:39Z")

</div>

The main question is, where does this configure? I have this problem, and I've been install Elasticsearch 7.9

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 12, 2020, 4:28pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/8 "2020-10-12T16:28:16Z")

</div>

Again... There's no automatic deletion of data/index unless you defined something.

So if you don't want to have automatic removal of data, there is **absolutely nothing** to configure.

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 12, 2020, 5:00pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/9 "2020-10-12T17:00:48Z")

</div>

I was installing 7.9.1 ... amd 64 deb. I installed it myself. Faced a problem. Didn't set up anything specially. Common words don't work. Help, I did not find an answer on the network.

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 12, 2020, 5:13pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/10 "2020-10-12T17:13:35Z")

</div>

Log file:  
[INFO][o.e.x.m.a.TransportDeleteExpiredDataAction] [node-1] Deleting expired data  
[INFO][o.e.x.m.a.TransportDeleteExpiredDataAction] [node-1] Completed deletion of expired

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 13, 2020, 9:47am UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/11 "2020-10-13T09:47:40Z")

</div>

This is a machine learning thing. Are you using Machine Learning?

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 13, 2020, 10:55am UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/12 "2020-10-13T10:55:01Z")

</div>

I don't use ML. I don't plan on doing it any time soon. I'm ready to give up this opportunity

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 13, 2020, 1:01pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/13 "2020-10-13T13:01:22Z")

</div>

I tried to stop the ML: \_ml/set\_upgrade\_mode?enabled=true  
Does it help?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 13, 2020, 1:32pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/14 "2020-10-13T13:32:16Z")

</div>

You can disable ml by setting `xpack.ml.enabled` to `false`. See

> **[Machine learning settings in Elasticsearch | Elasticsearch Reference \[7.9\] |...](https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html)**

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 13, 2020, 2:14pm UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/15 "2020-10-13T14:14:33Z")

</div>

thanks to Your clue, I already did that too

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 14, 2020, 6:26am UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/16 "2020-10-14T06:26:11Z")

</div>

Did you restart? What are then the full elasticsearch logs since the restart?

---

<div class="post-metadata">

**Author:** ![dwlande](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dwlande](https://discuss.elastic.co/u/dwlande)\
**Post date:** [October 14, 2020, 6:42am UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/17 "2020-10-14T06:42:46Z")

</div>

thank you! of course, Restart, no more problems 👍

---

<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:** [November 11, 2020, 6:42am UTC](https://discuss.elastic.co/t/how-to-turn-off-automatic-deletion-upon-expiration-of-data-index/251736/18 "2020-11-11T06:42:51Z")

</div>

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