List, remove, and update installed plugins
Retrieve the currently loaded plugins with the list option:
sudo bin/elasticsearch-plugin list
Alternatively, use the nodes info API to find out which plugins are installed on each node in the cluster.
Plugins can be removed manually by deleting the appropriate directory under plugins/, or with the plugin script:
sudo bin/elasticsearch-plugin remove [pluginname]
After a Java plugin has been removed, restart the node to complete the removal.
By default, plugin configuration files (if any) are preserved on disk so configuration is not lost while upgrading a plugin. To purge configuration files while removing a plugin, use -p or --purge. You can also use this option after a plugin is removed to clean up lingering configuration files.
Remove multiple plugins in one invocation:
sudo bin/elasticsearch-plugin remove [pluginname] [pluginname] ... [pluginname]
Except for text analysis plugins created using the stable plugin API, plugins are built for a specific version of Elasticsearch and must be reinstalled each time Elasticsearch is updated.
sudo bin/elasticsearch-plugin remove [pluginname]
sudo bin/elasticsearch-plugin install [pluginname]