# Uninstalling Elastisearch

**URL:** <https://discuss.elastic.co/t/uninstalling-elastisearch/121023>\
**Category:** Elasticsearch\
**Created:** [February 22, 2018, 10:16am UTC](https://discuss.elastic.co/t/uninstalling-elastisearch/121023 "2018-02-22T10:16:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suryakumar](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Suryakumar](https://discuss.elastic.co/u/Suryakumar)\
**Post date:** [February 22, 2018, 10:16am UTC](https://discuss.elastic.co/t/uninstalling-elastisearch/121023/1 "2018-02-22T10:16:38Z")

</div>

Hi,

I want to completely uninstall elasticsearch, kibana and logstash as I want to start it from scratch again. But I cannot uninstall. I've tried many ways. It is not listed in installed packages too. Can't remove it from Synaptic too. While trying through the ways suggested online, I'm getting the below message:

 ![elasticsearch_error](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f59bb6df31f2ddc32e580d6aeab7daf424a5e476.png)

Note : Platform - Ubuntu 16.04 LTS

---

<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:** [February 22, 2018, 10:35am UTC](https://discuss.elastic.co/t/uninstalling-elastisearch/121023/2 "2018-02-22T10:35:38Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

---

<div class="post-metadata">

**Author:** ![Suryakumar](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Suryakumar](https://discuss.elastic.co/u/Suryakumar)\
**Post date:** [February 22, 2018, 11:03am UTC](https://discuss.elastic.co/t/uninstalling-elastisearch/121023/3 "2018-02-22T11:03:31Z")

</div>

Hi dadoonet,

Thanks for the reply. Thought it would be apt if i post the command prompt window itself! Okay here is the text.. Whatever I try, this is the response I got.

> Reading package lists... Done  
> Building dependency tree  
> Reading state information... Done  
> Package 'elasticsearch' is not installed, so not removed  
> 0 upgraded, 0 newly installed, 0 to remove and 372 not upgraded.

I have tried :

> suryakumar@suryakumar-ThinkPad-X240:~$ sudo apt-get remove elasticsearch  
> suryakumar@suryakumar-ThinkPad-X240:~$ sudo apt-get purge elasticsearch  
> Inside the folder too:  
> suryakumar@suryakumar-ThinkPad-X240:~/elasticsearch/bin$ sudo apt-get remove elasticsearch  
> suryakumar@suryakumar-ThinkPad-X240:~/elasticsearch/bin$ sudo apt-get purge elasticsearch

grep:

> suryakumar@suryakumar-ThinkPad-X240:~$ ps -aef | grep elasticsearch  
> suryaku+ 31343 31298 0 15:43 pts/4 00:00:00 grep --color=auto elasticsearch

---

<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 22, 2018, 11:03am UTC](https://discuss.elastic.co/t/uninstalling-elastisearch/121023/4 "2018-03-22T11:03:55Z")

</div>

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