# \_ttl problem

**URL:** <https://discuss.elastic.co/t/-ttl-problem/17634>\
**Category:** Elasticsearch\
**Created:** [May 21, 2014, 4:29am UTC](https://discuss.elastic.co/t/-ttl-problem/17634 "2014-05-21T04:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zealot\_Yin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zealot_yin/32/1538_2.png) [@Zealot\_Yin](https://discuss.elastic.co/u/Zealot_Yin)\
**Post date:** [May 21, 2014, 4:29am UTC](https://discuss.elastic.co/t/-ttl-problem/17634/1 "2014-05-21T04:29:59Z")

</div>

hi:  
if i did not set \_ttl to enable before,and then i put a lot of data  
with filed \_ttl into elasticsearch ,when somedays i wanan set the \_ttl to  
enable,but my data inserted before will never has the chance to be  
expired.(in my test on version 1.1.1 only the new inserted data (after set  
\_ttl enable) will be expired)  
is there a way for me to make the old data be expired?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b7c435a9-459c-4787-a2e2-78dd95176e97%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b7c435a9-459c-4787-a2e2-78dd95176e97%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [May 21, 2014, 5:11am UTC](https://discuss.elastic.co/t/-ttl-problem/17634/2 "2014-05-21T05:11:46Z")

</div>

You need to reindex old data.  
Or use a Delete by query if you want to simply remove them.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 21 mai 2014 à 06:29, Zealot Yin [0xmalloc@gmail.com](mailto:0xmalloc@gmail.com) a écrit :

## hi: if i did not set \_ttl to enable before,and then i put a lot of data with filed \_ttl into elasticsearch ,when somedays i wanan set the \_ttl to enable,but my data inserted before will never has the chance to be expired.(in my test on version 1.1.1 only the new inserted data (after set \_ttl enable) will be expired) is there a way for me to make the old data be expired?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b7c435a9-459c-4787-a2e2-78dd95176e97%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b7c435a9-459c-4787-a2e2-78dd95176e97%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3DBD7D91-D234-4DDB-B538-E2C9B42078EE%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/3DBD7D91-D234-4DDB-B538-E2C9B42078EE%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:27am UTC](https://discuss.elastic.co/t/-ttl-problem/17634/3 "2017-07-06T01:27:59Z")

</div>


