# Difference between expired and deleted document?

**URL:** <https://discuss.elastic.co/t/difference-between-expired-and-deleted-document/13320>\
**Category:** Elasticsearch\
**Created:** [August 24, 2013, 4:23pm UTC](https://discuss.elastic.co/t/difference-between-expired-and-deleted-document/13320 "2013-08-24T16:23:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 24, 2013, 4:23pm UTC](https://discuss.elastic.co/t/difference-between-expired-and-deleted-document/13320/1 "2013-08-24T16:23:25Z")

</div>

Hi,

I wanted to know the difference between expired and deleted document.  
i am using \_ttl as 1000 while indexing the document. I want the document to  
be deleted instead of expired. How can I control that.

Thanks,  
Arjit

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 26, 2013, 3:33am UTC](https://discuss.elastic.co/t/difference-between-expired-and-deleted-document/13320/2 "2013-08-26T03:33:27Z")

</div>

Hi,

I think indices.ttl.interval is used to delete the expire document.  
Can I set it to indices.ttl.interval = 0 ? So that as soon as document is  
expired its deleted.

My use case is using those documents as distributed locks. So, I want locks  
to expire and gets deleted after a ttl .

Thanks,  
Arjit

On Saturday, August 24, 2013 9:53:25 PM UTC+5:30, Arjit Gupta wrote:

> Hi,
> 
> I wanted to know the difference between expired and deleted document.  
> i am using \_ttl as 1000 while indexing the document. I want the document  
> to be deleted instead of expired. How can I control that.
> 
> Thanks,  
> Arjit

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 26, 2013, 2:01pm UTC](https://discuss.elastic.co/t/difference-between-expired-and-deleted-document/13320/3 "2013-08-26T14:01:42Z")

</div>

Any help ?

Thanks ,  
Arjit

On Mon, Aug 26, 2013 at 9:03 AM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:

> Hi,
> 
> I think indices.ttl.interval is used to delete the expire document.  
> Can I set it to indices.ttl.interval = 0 ? So that as soon as document is  
> expired its deleted.
> 
> My use case is using those documents as distributed locks. So, I want  
> locks to expire and gets deleted after a ttl .
> 
> Thanks,  
> Arjit
> 
> On Saturday, August 24, 2013 9:53:25 PM UTC+5:30, Arjit Gupta wrote:
> 
> > Hi,
> > 
> > I wanted to know the difference between expired and deleted document.  
> > i am using \_ttl as 1000 while indexing the document. I want the document  
> > to be deleted instead of expired. How can I control that.
> > 
> > Thanks,  
> > Arjit
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/Hzc96grlFkU/unsubscribe](https://groups.google.com/d/topic/elasticsearch/Hzc96grlFkU/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:19am UTC](https://discuss.elastic.co/t/difference-between-expired-and-deleted-document/13320/4 "2017-07-06T02:19:48Z")

</div>

Closed on July 6, 2017, 2:19am UTC


