# Delete\_all\_indicies

**URL:** <https://discuss.elastic.co/t/delete-all-indicies/11098>\
**Category:** Elasticsearch\
**Created:** [March 11, 2013, 3:57pm UTC](https://discuss.elastic.co/t/delete-all-indicies/11098 "2013-03-11T15:57:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VegHead](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/veghead/32/2411_2.png) [@VegHead](https://discuss.elastic.co/u/VegHead)\
**Post date:** [March 11, 2013, 3:57pm UTC](https://discuss.elastic.co/t/delete-all-indicies/11098/1 "2013-03-11T15:57:15Z")

</div>

Hi,  
Running 15 node ElasticSearch 0.19.11 cluster on EC2. I'd like to set  
the delete\_all\_indicies option to prevent anyone from doing that. Two  
questions.

1. What's the correct way to set that flag? That goes in elasticsearch.yml?  
Is it as simple as:

action.disable\_delete\_all\_indices: true

1. Is there a way to set that without restarting servers? Do I need to  
restart all the servers in the cluster for that option to take effect?

Thanks.

-Sean

--  
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:** ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)\
**Post date:** [March 13, 2013, 7:38am UTC](https://discuss.elastic.co/t/delete-all-indicies/11098/2 "2013-03-13T07:38:49Z")

</div>

Hello Sean,

On Mon, Mar 11, 2013 at 5:57 PM, VegHead [organicveggie@gmail.com](mailto:organicveggie@gmail.com) wrote:

> Hi,  
> Running 15 node Elasticsearch 0.19.11 cluster on EC2. I'd like to set  
> the delete\_all\_indicies option to prevent anyone from doing that. Two  
> questions.
> 
> 1. What's the correct way to set that flag? That goes in  
> elasticsearch.yml? Is it as simple as:
> 
> action.disable\_delete\_all\_indices: true

Yes, it's that simple 🙂

> 1. Is there a way to set that without restarting servers? Do I need to  
> restart all the servers in the cluster for that option to take effect?

Yes, unfortunately you'll have to restart Elasticsearch for these changes  
to take effect. If you have a bigger cluster, and only one or two nodes  
with HTTP enabled which get hit by requests directly, I guess it's fine to  
only restart those nodes. I haven't tested it, but it should be enough.

## Best regards, Radu

[http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene

--  
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:46am UTC](https://discuss.elastic.co/t/delete-all-indicies/11098/3 "2017-07-06T02:46:51Z")

</div>


