# How to reset elasticsearch security back to the original state

**URL:** https://discuss.elastic.co/t/how-to-reset-elasticsearch-security-back-to-the-original-state/182970
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [May 27, 2019, 11:22pm UTC](https://discuss.elastic.co/t/how-to-reset-elasticsearch-security-back-to-the-original-state/182970 "2019-05-27T23:22:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [May 27, 2019, 11:22pm UTC](https://discuss.elastic.co/t/how-to-reset-elasticsearch-security-back-to-the-original-state/182970/1 "2019-05-27T23:22:22Z")

</div>

Hello,

I was playing around with xpack security feature and now nothing seam to work. Is there a way that I can revert back to the original state and start it over?

Regards,  
Peter

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [May 28, 2019, 1:01am UTC](https://discuss.elastic.co/t/how-to-reset-elasticsearch-security-back-to-the-original-state/182970/2 "2019-05-28T01:01:12Z")

</div>

It depends a little on what you've done and how it's ended up in a bad state, but the general advice is:

1. Remove/comment-out all `xpack.security.*` settings from your `elasticsearch.yml` file
2. Restart your whole cluster
3. Remove the security indices: `DELETE .security-*`

**However** , we can probably help sort through your problems without needing to be quite so drastic if you would prefer.  
Just let us know what's going wrong and we'll see what we can do.

---

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [May 28, 2019, 1:26am UTC](https://discuss.elastic.co/t/how-to-reset-elasticsearch-security-back-to-the-original-state/182970/3 "2019-05-28T01:26:06Z")

</div>

Thank you, I did that already. Started over but it's not helpfull. My main issue is kibana does not want to connect to the elasticsearch. I might need to ask the question on kibana in order to figure it 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: [June 25, 2019, 1:26am UTC](https://discuss.elastic.co/t/how-to-reset-elasticsearch-security-back-to-the-original-state/182970/4 "2019-06-25T01:26:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
