# Is it possible to reset/delete all data and index after the certain period time?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-reset-delete-all-data-and-index-after-the-certain-period-time/16705>\
**Category:** Elasticsearch\
**Created:** [March 31, 2014, 1:07am UTC](https://discuss.elastic.co/t/is-it-possible-to-reset-delete-all-data-and-index-after-the-certain-period-time/16705 "2014-03-31T01:07:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Ren](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@Kevin\_Ren](https://discuss.elastic.co/u/Kevin_Ren)\
**Post date:** [March 31, 2014, 1:07am UTC](https://discuss.elastic.co/t/is-it-possible-to-reset-delete-all-data-and-index-after-the-certain-period-time/16705/1 "2014-03-31T01:07:50Z")

</div>

Hi,  
I installed logstash1.4+eleasticsearch1.0.1 and kibana3. Everything is  
working fine.  
I want to delte or reste all data and index in certain period time, like  
two days or 7 days.  
Is it possible add this time in the run command line or config file?

Cheers

Kevin

--  
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/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [March 31, 2014, 1:24am UTC](https://discuss.elastic.co/t/is-it-possible-to-reset-delete-all-data-and-index-after-the-certain-period-time/16705/2 "2014-03-31T01:24:22Z")

</div>

Yep - curl -XDELETE /$indexname  
You might also want to look at [GitHub - elastic/curator: Curator: Tending your Elasticsearch indices](https://github.com/elasticsearch/curator)

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 31 March 2014 12:07, Kevin Ren [ren.xiaowen09@gmail.com](mailto:ren.xiaowen09@gmail.com) wrote:

> Hi,  
> I installed logstash1.4+eleasticsearch1.0.1 and kibana3. Everything is  
> working fine.  
> I want to delte or reste all data and index in certain period time, like  
> two days or 7 days.  
> Is it possible add this time in the run command line or config file?
> 
> Cheers
> 
> Kevin
> 
> --  
> 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/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> 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/CAEM624aXD\_wLyD03NyDHOGHGmgxucyBSq1c7wby3Y%3DQY73nbFw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624aXD_wLyD03NyDHOGHGmgxucyBSq1c7wby3Y%3DQY73nbFw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Kevin\_Ren](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@Kevin\_Ren](https://discuss.elastic.co/u/Kevin_Ren)\
**Post date:** [March 31, 2014, 2:22am UTC](https://discuss.elastic.co/t/is-it-possible-to-reset-delete-all-data-and-index-after-the-certain-period-time/16705/3 "2014-03-31T02:22:26Z")

</div>

thanks, I will read curator late. maybe much better or more options that  
the commend line.

On Monday, 31 March 2014 14:24:22 UTC+13, Mark Walkom wrote:

> Yep - curl -XDELETE /$indexname  
> You might also want to look at [GitHub - elastic/curator: Curator: Tending your Elasticsearch indices](https://github.com/elasticsearch/curator)
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com) \<javascript:\>  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 31 March 2014 12:07, Kevin Ren \<[ren.xi...@gmail.com](mailto:ren.xi...@gmail.com) \<javascript:\>\>wrote:
> 
> > Hi,  
> > I installed logstash1.4+eleasticsearch1.0.1 and kibana3. Everything is  
> > working fine.  
> > I want to delte or reste all data and index in certain period time, like  
> > two days or 7 days.  
> > Is it possible add this time in the run command line or config file?
> > 
> > Cheers
> > 
> > Kevin
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/01b77871-0aad-41e1-a79d-a3897eedf843%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > 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/2373bf16-bf56-4379-b135-eb8421d65fe3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2373bf16-bf56-4379-b135-eb8421d65fe3%40googlegroups.com).  
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:39am UTC](https://discuss.elastic.co/t/is-it-possible-to-reset-delete-all-data-and-index-after-the-certain-period-time/16705/4 "2017-07-06T01:39:37Z")

</div>


