# How to completely uninstall ELK?

**URL:** <https://discuss.elastic.co/t/how-to-completely-uninstall-elk/325112>\
**Category:** Elasticsearch\
**Created:** [February 9, 2023, 8:26am UTC](https://discuss.elastic.co/t/how-to-completely-uninstall-elk/325112 "2023-02-09T08:26:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![usr4](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@usr4](https://discuss.elastic.co/u/usr4)\
**Post date:** [February 9, 2023, 8:26am UTC](https://discuss.elastic.co/t/how-to-completely-uninstall-elk/325112/1 "2023-02-09T08:26:53Z")

</div>

Hi everyone,

I hastily installed ELK and x-pack on a Mac many years ago, the version is 5.6.3.

I forgot how it was installed in the first place, now I wanted to uninstall them all clean and install a different version of ELK (Elasticsearch 6.2.4). What's the best way to do it?

The installation was experimental so there is no data that need to be preserved.

On the Mac, I can see a folder:  
/usr/local/Cellar/elasticsearch/5.6.3

And another folder in a path I specified originally, which has these folders:  
kibana-5.6.3-darwin-x86\_64  
logstash-5.6.3  
x-pack-5.6.3

Thanks!

---

<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:** [February 9, 2023, 9:01am UTC](https://discuss.elastic.co/t/how-to-completely-uninstall-elk/325112/2 "2023-02-09T09:01:59Z")

</div>

Welcome to our community! 😃

An `rm -rf` of those directories should do it.

---

<div class="post-metadata">

**Author:** ![usr4](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@usr4](https://discuss.elastic.co/u/usr4)\
**Post date:** [February 9, 2023, 9:26am UTC](https://discuss.elastic.co/t/how-to-completely-uninstall-elk/325112/3 "2023-02-09T09:26:20Z")

</div>

Can I just move them to the trash bin? Or do I have to use the **rm -rf** command?

Is it really enough to just delete those directories? I mean won't this have side effects after I reinstall another version?

Thank you!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 9, 2023, 2:56pm UTC](https://discuss.elastic.co/t/how-to-completely-uninstall-elk/325112/4 "2023-02-09T14:56:41Z")

</div>

It looks like you used Homebrew perhaps try removing it with Homebrew first?

Elastic does not spread configuration out on a Mac so removing the directors should work.

---

<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:** [March 9, 2023, 2:57pm UTC](https://discuss.elastic.co/t/how-to-completely-uninstall-elk/325112/5 "2023-03-09T14:57:38Z")

</div>

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