# How to uninstall Elasticsearch from Windows

**URL:** <https://discuss.elastic.co/t/how-to-uninstall-elasticsearch-from-windows/71533>\
**Category:** Elasticsearch\
**Created:** [January 13, 2017, 2:58pm UTC](https://discuss.elastic.co/t/how-to-uninstall-elasticsearch-from-windows/71533 "2017-01-13T14:58:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annie178](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Annie178](https://discuss.elastic.co/u/Annie178)\
**Post date:** [January 13, 2017, 2:58pm UTC](https://discuss.elastic.co/t/how-to-uninstall-elasticsearch-from-windows/71533/1 "2017-01-13T14:58:24Z")

</div>

Hi all,

I installed elasticsearch version 2.3.5 on my computer by accident. I set it up to run as a service and now I can't find any documentation on how to uninstall elasticsearch. Does anybody know how to uninstall elasticsearch?

I'd really appreciate any help or advice people have!

Kind regards,

Anne Marie

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 13, 2017, 3:13pm UTC](https://discuss.elastic.co/t/how-to-uninstall-elasticsearch-from-windows/71533/2 "2017-01-13T15:13:18Z")

</div>

```auto
FORMAT C:

```

😃

[https://www.elastic.co/guide/en/elasticsearch/reference/2.3/setup-service-win.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/setup-service-win.html)

```auto
service.bat remove [SERVICE_ID] 

```

---

<div class="post-metadata">

**Author:** ![Annie178](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Annie178](https://discuss.elastic.co/u/Annie178)\
**Post date:** [January 13, 2017, 3:36pm UTC](https://discuss.elastic.co/t/how-to-uninstall-elasticsearch-from-windows/71533/3 "2017-01-13T15:36:33Z")

</div>

Thank you!

I ran elasticsearch-service.bat and it removed the service.

Just to clarify, that's all I have to do to uninstall evrything from elasticsearch. I can now delete all the files ?

Thanks so much for your help!

Anne Marie

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 13, 2017, 3:48pm UTC](https://discuss.elastic.co/t/how-to-uninstall-elasticsearch-from-windows/71533/4 "2017-01-13T15:48:04Z")

</div>

I believe so. Once the service has been stopped and removed. You can remove elasticsearch binary.

---

<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:** [February 10, 2017, 3:48pm UTC](https://discuss.elastic.co/t/how-to-uninstall-elasticsearch-from-windows/71533/5 "2017-02-10T15:48:19Z")

</div>

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