# Unable to uninstall x-pack from elastic search 6.1.2 docker image

**URL:** <https://discuss.elastic.co/t/unable-to-uninstall-x-pack-from-elastic-search-6-1-2-docker-image/116325>\
**Category:** Elasticsearch\
**Created:** [January 20, 2018, 4:32am UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack-from-elastic-search-6-1-2-docker-image/116325 "2018-01-20T04:32:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobin\_Jose](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Bobin\_Jose](https://discuss.elastic.co/u/Bobin_Jose)\
**Post date:** [January 20, 2018, 4:32am UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack-from-elastic-search-6-1-2-docker-image/116325/1 "2018-01-20T04:32:16Z")

</div>

I am unable to uninstall x-pack from es 6.1.2 docker image.I have tried with root/elasticsearch user.I am getting the below error message.

[root@e1e91a610ab5 bin]# ./elasticsearch-plugin remove x-pack --purge  
-\> removing [x-pack]...  
Exception in thread "main" java.io.IOException: Could not remove the following files (in the order of attempts):  
/usr/share/elasticsearch/plugins/x-pack/platform/darwin-x86\_64/bin/autoconfig: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/x-pack/platform/darwin-x86\_64/bin/autoconfig  
/usr/share/elasticsearch/plugins/x-pack/platform/darwin-x86\_64/bin/autodetect: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/x-pack/platform/darwin-x86\_64/bin/autodetect

Even I cannot remove the plugins/x-pack.i am getting the below errors  
[root@d4c37e9bb96f elasticsearch]# rm -rf plugins/x-pack/  
rm: cannot remove 'plugins/x-pack/platform/darwin-x86\_64/bin': Directory not empty  
rm: cannot remove 'plugins/x-pack/platform/darwin-x86\_64/lib': Directory not empty  
rm: cannot remove 'plugins/x-pack/platform/linux-x86\_64/bin': Directory not empty  
rm: cannot remove 'plugins/x-pack/platform/linux-x86\_64/lib': Directory not empty  
rm: cannot remove 'plugins/x-pack/platform/windows-x86\_64/bin': Directory not empty  
rm: cannot remove 'plugins/x-pack/resources': Directory not empty  
[root@d4c37e9bb96f elasticsearch]#

---

<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:** [January 20, 2018, 5:08am UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack-from-elastic-search-6-1-2-docker-image/116325/2 "2018-01-20T05:08:15Z")

</div>

You'd be better off just using the non-X-Pack container - [https://www.elastic.co/guide/en/elasticsearch/reference/6.1/docker.html#\_image\_types](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/docker.html#_image_types)

---

<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 17, 2018, 5:08am UTC](https://discuss.elastic.co/t/unable-to-uninstall-x-pack-from-elastic-search-6-1-2-docker-image/116325/3 "2018-02-17T05:08:25Z")

</div>

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