# Difference between Delete All indices and Close All indices

**URL:** <https://discuss.elastic.co/t/difference-between-delete-all-indices-and-close-all-indices/23535>\
**Category:** Elasticsearch\
**Created:** [May 4, 2015, 10:01am UTC](https://discuss.elastic.co/t/difference-between-delete-all-indices-and-close-all-indices/23535 "2015-05-04T10:01:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruben\_Ortiz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruben_ortiz/32/712_2.png) [@Ruben\_Ortiz](https://discuss.elastic.co/u/Ruben_Ortiz)\
**Post date:** [May 4, 2015, 10:01am UTC](https://discuss.elastic.co/t/difference-between-delete-all-indices-and-close-all-indices/23535/1 "2015-05-04T10:01:18Z")

</div>

Hi

I'm learning how to maintain clean my ES and I found this article today

[http://www.elastic.co/guide/en/elasticsearch/client/curator/current/examples.html](http://www.elastic.co/guide/en/elasticsearch/client/curator/current/examples.html)

The first example is "Delete all indices older than". I've installed  
curator tool to execute the command:

_# curator delete indices --older-than 14 --time-unit days --timestring  
'%Y.%m.%d'_  
2015-05-04 11:50:49,600 INFO Job starting: delete indices  
2015-05-04 11:50:49,613 INFO Pruning Kibana-related indices to prevent  
accidental deletion.  
2015-05-04 11:50:50,046 INFO Job completed successfully.

then I've checked again my index and the index called "logstash-2015.04.19"  
have disappeared. So, turns out it really remove all index and the  
documents but then... What is difference with "close indices"?

Thanks

--  
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/01b265a5-e482-44ce-b0e6-6489f1ad4e1d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/01b265a5-e482-44ce-b0e6-6489f1ad4e1d%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:** [May 4, 2015, 10:32am UTC](https://discuss.elastic.co/t/difference-between-delete-all-indices-and-close-all-indices/23535/2 "2015-05-04T10:32:56Z")

</div>

Close leaves them on disk but removes them from being queried, which also  
means it takes barely any heap to maintain.  
It might be useful if you have lots of disk space but not much heap, it  
just means you have to manually open them when you want to query them.

On 4 May 2015 at 20:01, Rubén Ortiz [rortiz.blasco@gmail.com](mailto:rortiz.blasco@gmail.com) wrote:

> Hi
> 
> I'm learning how to maintain clean my ES and I found this article today
> 
> [Examples | Curator Reference [8.0] | Elastic](http://www.elastic.co/guide/en/elasticsearch/client/curator/current/examples.html)
> 
> The first example is "Delete all indices older than". I've installed  
> curator tool to execute the command:
> 
> _# curator delete indices --older-than 14 --time-unit days --timestring  
> '%Y.%m.%d'_  
> 2015-05-04 11:50:49,600 INFO Job starting: delete indices  
> 2015-05-04 11:50:49,613 INFO Pruning Kibana-related indices to  
> prevent accidental deletion.  
> 2015-05-04 11:50:50,046 INFO Job completed successfully.
> 
> then I've checked again my index and the index called  
> "logstash-2015.04.19" have disappeared. So, turns out it really remove all  
> index and the documents but then... What is difference with "close indices"?
> 
> Thanks
> 
> --  
> 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/01b265a5-e482-44ce-b0e6-6489f1ad4e1d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/01b265a5-e482-44ce-b0e6-6489f1ad4e1d%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/01b265a5-e482-44ce-b0e6-6489f1ad4e1d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/01b265a5-e482-44ce-b0e6-6489f1ad4e1d%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/CAEYi1X-2DNU4FUbj\_PPLy-4h%3DrLVi%3DJcK-WDBLTZmOzumYdLcA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-2DNU4FUbj_PPLy-4h%3DrLVi%3DJcK-WDBLTZmOzumYdLcA%40mail.gmail.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, 12:15am UTC](https://discuss.elastic.co/t/difference-between-delete-all-indices-and-close-all-indices/23535/3 "2017-07-06T00:15:55Z")

</div>


