# Uninstall older versions of elasticsearch and kibana

**URL:** <https://discuss.elastic.co/t/uninstall-older-versions-of-elasticsearch-and-kibana/156868>\
**Category:** Elasticsearch\
**Created:** [November 15, 2018, 1:18pm UTC](https://discuss.elastic.co/t/uninstall-older-versions-of-elasticsearch-and-kibana/156868 "2018-11-15T13:18:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronyarmon](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@ronyarmon](https://discuss.elastic.co/u/ronyarmon)\
**Post date:** [November 15, 2018, 1:18pm UTC](https://discuss.elastic.co/t/uninstall-older-versions-of-elasticsearch-and-kibana/156868/1 "2018-11-15T13:18:48Z")

</div>

Hello, I just installed elasticsearch and kibana 6.5 on Ubuntu 18.04.1 . Can you explain how to remove the older versions? (elasticsearch 6.4.2, kibana 6.4.3)

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [November 16, 2018, 10:19am UTC](https://discuss.elastic.co/t/uninstall-older-versions-of-elasticsearch-and-kibana/156868/2 "2018-11-16T10:19:27Z")

</div>

@ronyarmon, Have you installed the new elasticsearch and kibana on same servers which earlier have older version? If yes, then i am hoping that older version will be uninstalled itself when you install the new version.

Can you please check the version now? Its should show the new version.

If you use new server and want to uninstall from the older server then you can use the below commands:

```auto
apt remove <packagename>
apt purge <packagename>

```

Thanks.

---

<div class="post-metadata">

**Author:** ![ronyarmon](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@ronyarmon](https://discuss.elastic.co/u/ronyarmon)\
**Post date:** [November 18, 2018, 6:22am UTC](https://discuss.elastic.co/t/uninstall-older-versions-of-elasticsearch-and-kibana/156868/3 "2018-11-18T06:22:37Z")

</div>

Thanks, I'm getting version 6.5 so I can assume that 6.4.3 was uninstalled? Can I delete the 6.4.3 folder?

---

<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:** [December 16, 2018, 6:22am UTC](https://discuss.elastic.co/t/uninstall-older-versions-of-elasticsearch-and-kibana/156868/4 "2018-12-16T06:22:47Z")

</div>

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