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 need to manually remove it.

This recipe covers both cases.

Getting ready

You need a working ElasticSearch Server installed, with an installed plugin, and you need to stop the ElasticSearch server in order to safely remove the plugin.

How to do it...

Perform the following steps to remove a plugin:

  1. Stop your running node in order to prevent exceptions due to file removal.
  2. Using the ElasticSearch Plugin Manager, which comes with its script wrapper (plugin), call the following commands:
    • For Linux/Mac OS X, call this:
      plugin -remove mobz/elasticsearch-head
      

      You can also ...

Get ElasticSearch Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.