# Unable to uninstall X-pack

**URL:** <https://discuss.elastic.co/t/unable-to-uninstall-x-pack/167315>\
**Category:** Elasticsearch\
**Created:** [February 6, 2019, 3:32pm UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack/167315 "2019-02-06T15:32:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwan/32/42325_2.png) [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Post date:** [February 6, 2019, 3:32pm UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack/167315/1 "2019-02-06T15:32:28Z")

</div>

Hi Team,

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

**[root@915468-ElasticDemo elasticsearch]# systemctl stop elasticsearch**

**[root@915468-ElasticDemo elasticsearch]# sudo bin/elasticsearch-plugin remove x-pack**

**-\> removing [x-pack]...**

**ERROR: plugin [x-pack] not found; run 'elasticsearch-plugin list' to get list of installed plugins**

**[root@915468-ElasticDemo elasticsearch]# curl [http://172.24.36.204:9200](http://172.24.36.204:9200)**

**{**

**"name" : "[915468-ElasticDemo.newfrontierdata.com](http://915468-ElasticDemo.newfrontierdata.com)",**

**"cluster\_name" : "ElasticDemO",**

**"cluster\_uuid" : "_na_",**

**"version" : {**

**"number" : "6.5.1",**

Please help me to accomplish this task . I have gone through the following URL and your official document too.

> [@Cannot uninstall X-pack](https://discuss.elastic.co/t/cannot-uninstall-x-pack/121173/3):
>
> what does 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?

> **[Uninstalling X-Pack | X-Pack for the Elastic Stack \[6.2\] | Elastic](https://www.elastic.co/guide/en/x-pack/current/xpack-uninstalling.html)**

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [February 6, 2019, 8:06pm UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack/167315/2 "2019-02-06T20:06:55Z")

</div>

The docs you've linked to are for Elastic Stack 6.2.

It looks like you are using Elasticsearch 6.5.1. If that's the case and you're using the default distribution, you cannot _uninstall_ X-Pack. You can apply a license to the cluster however, including [a free perpetual basic license](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/start-basic.html).

---

<div class="post-metadata">

**Author:** ![nuwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwan/32/42325_2.png) [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Post date:** [February 7, 2019, 4:30am UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack/167315/3 "2019-02-07T04:30:13Z")

</div>

Hi Rass Cam,

Thank you very much for your reply . Appreciate your support.

---

<div class="post-metadata">

**Author:** ![nuwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwan/32/42325_2.png) [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Post date:** [February 8, 2019, 5:55am UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack/167315/4 "2019-02-08T05:55:23Z")

</div>

How Can I Disable X-pack . Please help me to do this

---

<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 8, 2019, 5:56am UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack/167315/5 "2019-02-08T05:56:31Z")

</div>

If you don't want X-Pack, including the free features in basic, then just use the `-oss` version of the packages as they don't have it bundled.

---

<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 8, 2019, 5:56am UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack/167315/6 "2019-03-08T05:56:56Z")

</div>

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