# Uninstall X-Pack

**URL:** <https://discuss.elastic.co/t/uninstall-x-pack/72615>\
**Category:** Elasticsearch\
**Created:** [January 24, 2017, 10:42am UTC](https://discuss.elastic.co/t/uninstall-x-pack/72615 "2017-01-24T10:42:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalt](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kalt](https://discuss.elastic.co/u/kalt)\
**Post date:** [January 24, 2017, 10:42am UTC](https://discuss.elastic.co/t/uninstall-x-pack/72615/1 "2017-01-24T10:42:38Z")

</div>

Hi,

I have installed X-Pack on a 5.1.2 cluster with a basic license, and then decided I want to remove it again. Following the instructions at [https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-uninstalling](https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-uninstalling), nodes are unable to join the cluster after restart due to [https://github.com/elastic/elasticsearch/pull/15401](https://github.com/elastic/elasticsearch/pull/15401), ie.

`IllegalArgumentException[No custom metadata prototype registered for type [licenses], node likely missing plugins]`

How do I properly and cleanly uninstall X-Pack?

Thanks in advance,  
-K

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [January 24, 2017, 12:03pm UTC](https://discuss.elastic.co/t/uninstall-x-pack/72615/2 "2017-01-24T12:03:40Z")

</div>

> [@kalt](#):
>
> nodes are unable to join the cluster

How many nodes does this cluster consist of? Please note that x-pack needs to be installed on all nodes, and the same goes for removal of the same.

---

<div class="post-metadata">

**Author:** ![kalt](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kalt](https://discuss.elastic.co/u/kalt)\
**Post date:** [January 24, 2017, 12:27pm UTC](https://discuss.elastic.co/t/uninstall-x-pack/72615/3 "2017-01-24T12:27:18Z")

</div>

Thanks. Going through a full cluster restart (disable allocation, shutdown nodes, offline remove plugin, startup nodes, enable allocation) did it.

---

<div class="post-metadata">

**Author:** ![Areek\_Zillur](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Areek\_Zillur](https://discuss.elastic.co/u/Areek_Zillur)\
**Post date:** [January 25, 2017, 5:38pm UTC](https://discuss.elastic.co/t/uninstall-x-pack/72615/4 "2017-01-25T17:38:27Z")

</div>

This warning is due to x-pack being installed in some nodes in the cluster. Uninstalling x-pack in every node of the cluster should allow nodes to join and get rid of this exception.

---

<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:** [February 22, 2017, 5:38pm UTC](https://discuss.elastic.co/t/uninstall-x-pack/72615/5 "2017-02-22T17:38:33Z")

</div>

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