# Cannot delete plugin in 6.1

**URL:** https://discuss.elastic.co/t/cannot-delete-plugin-in-6-1/118735
**Category:** Elasticsearch
**Created:** [February 7, 2018, 12:49am UTC](https://discuss.elastic.co/t/cannot-delete-plugin-in-6-1/118735 "2018-02-07T00:49:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)
#### Post date: [February 7, 2018, 12:49am UTC](https://discuss.elastic.co/t/cannot-delete-plugin-in-6-1/118735/1 "2018-02-07T00:49:20Z")

</div>

I added an ingest-geoip plugin in 6.1.3 but after upgrading to 6.2 i am trying to remove and re-install but elasticsearch wont let me perfom the uninstall and throws a java exception

/usr/share/elasticsearch# sudo bin/elasticsearch-plugin remove ingest-geoip  
Exception in thread "main" java.lang.IllegalArgumentException: plugin [ingest-geoip] is incompatible with version [6.2.0]; was designed for version [6.1.3]  
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:224)  
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:329)  
at org.elasticsearch.plugins.RemovePluginCommand.execute(RemovePluginCommand.java:89)  
at org.elasticsearch.plugins.RemovePluginCommand.execute(RemovePluginCommand.java:67)  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:75)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.Command.main(Command.java:90)  
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48)

---

<div class="post-metadata">

### Author: ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)
#### Post date: [February 7, 2018, 1:06am UTC](https://discuss.elastic.co/t/cannot-delete-plugin-in-6-1/118735/2 "2018-02-07T01:06:17Z")

</div>

I manually deleted the ingest-geoip folder from the plugin directory and reinstalled the plugin and it worked but not sure why the command failed via CLI

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [February 7, 2018, 2:01am UTC](https://discuss.elastic.co/t/cannot-delete-plugin-in-6-1/118735/3 "2018-02-07T02:01:25Z")

</div>

It’s a [bug](https://github.com/elastic/elasticsearch/issues/28538). I am terribly sorry that you ran into this and we will have a release available with a fix ASAP.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [February 8, 2018, 5:25pm UTC](https://discuss.elastic.co/t/cannot-delete-plugin-in-6-1/118735/4 "2018-02-08T17:25:40Z")

</div>

We shipped [Elasticsearch 6.2.1](https://www.elastic.co/blog/elasticsearch-6-2-1-released) today with a fix for this [issue](https://github.com/elastic/elasticsearch/issues/28538).

---

<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, 2018, 5:25pm UTC](https://discuss.elastic.co/t/cannot-delete-plugin-in-6-1/118735/5 "2018-03-08T17:25:43Z")

</div>

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