# Cannot uninstall X-pack

**URL:** <https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173>\
**Category:** Elasticsearch\
**Created:** [February 23, 2018, 6:18am UTC](https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173 "2018-02-23T06:18:13Z")\
**Posts on this page:** 6\
**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 23, 2018, 6:18am UTC](https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173/1 "2018-02-23T06:18:13Z")

</div>

Hi,

I have installed X-Pack in a curiosity to know how it works. Now I want to uninstall it. But I cannot uninstall. When I try uninstalling with these commands:

> bin/elasticsearch-plugin remove x-pack

I am getting a number of Access denied exceptions. Below are the first few :

> /home/suryakumar/elasticsearch/plugins/x-pack/commons-codec-1.10.jar: java.nio.file.AccessDeniedException: /home/suryakumar/elasticsearch/plugins/x-pack/commons-codec-1.10.jar  
> /home/suryakumar/elasticsearch/plugins/x-pack/javax.mail-1.5.6.jar: java.nio.file.AccessDeniedException: /home/suryakumar/elasticsearch/plugins/x-pack/javax.mail-1.5.6.jar  
> /home/suryakumar/elasticsearch/plugins/x-pack/netty-common-4.1.13.Final.jar: java.nio.file.AccessDeniedException: /home/suryakumar/elasticsearch/plugins/x-pack/netty-common-4.1.13.Final.jar  
> /home/suryakumar/elasticsearch/plugins/x-pack/resources/date\_time\_zonespec.csv: java.nio.file.AccessDeniedException: /home/suryakumar/elasticsearch/plugins/x-pack/resources/date\_time\_zonespec.csv  
> /home/suryakumar/elasticsearch/plugins/x-pack/resources/ml-en.dict: java.nio.file.AccessDeniedException: /home/suryakumar/elasticsearch/plugins/x-pack/resources/ml-en.dict

Note : I am using Ubuntu 16.04 LTS. Please help me out. I haven't installed it on kibana. But I cannot access kibana as it is asking Username and Password. `elastic` and `changeme` didnt worked out.

Thanks,  
Suryakumar

---

<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 23, 2018, 6:31am UTC](https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173/2 "2018-02-23T06:31:20Z")

</div>

May be you installed it with sudo?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 23, 2018, 8:53am UTC](https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173/3 "2018-02-23T08:53:05Z")

</div>

what does

```auto
ls -l /home/suryakumar/elasticsearch/plugins/x-pack/netty-common-4.1.13.Final.jar

```

return? Can the user you are starting elasticsearch with read the file, are the permissions correct? Who is the user you are starting Elasticsearch with?

---

<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 26, 2018, 10:36am UTC](https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173/4 "2018-02-26T10:36:37Z")

</div>

Yes you're right I installed it with sudo permission. I tried uninstalling with sudo command and it got uninstalled. Thank you so much!

> sudo bin/elasticsearch-plugin remove x-pack

---

<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 26, 2018, 10:38am UTC](https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173/5 "2018-02-26T10:38:15Z")

</div>

Thank you so much for you reply. I installed it with sudo command. So while I tried with unistalling by

> sudo bin/elasticsearch-plugin remove x-pack

. It got uninstalled. Thank you.

---

<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 26, 2018, 10:39am UTC](https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173/6 "2018-03-26T10:39:10Z")

</div>

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