Removing a plugin
You have installed some plugins, and now you need to remove a plugin because it's not required. Removing an Elasticsearch plugin is easy if everything goes right, otherwise, you will need to remove it manually.
This recipe covers both cases.
Getting ready
You need a working Elasticsearch installation, as described in the Downloading and installing Elasticsearch recipe, and a prompt or shell to execute commands in the Elasticsearch install directory. Before removing a plugin, it is safer to stop the Elasticsearch server to prevent errors due to the deletion of a plugin JAR file.
How to do it…
The steps to remove a plugin are as follows:
- Stop your running node to prevent exceptions that are caused due to the removal of a file.
- Use the Elasticsearch plugin manager, which comes with its script wrapper (
bin/elasticsearch-plugin
).
On Linux and macOS X, type the following command:
elasticsearch-plugin remove ingest-attachment...