Uninstall elsticsearch on centOS

Hi,
I have install elasticsearch 2.2.0 but then i realize that there is not couch-base transport plugin for this version.How can i uninstall this version so i can install ES-2.1.1. Thank you.
I have removed all the directories from all the ES folders such as.

/usr/share/elasticsearch
/etc/elasticsearch
/etc/sysconfig/elasticsearch

When i reinstall ES-2.1.1, I got below message.

Package elasticsearch-2.2.0-1.noarch already installed and latest version
Nothing to do

To uninstall software installed with RPM or some other package management system, do not just delete files. Uninstall by using the package management system.

Hi,
Thank you for replying.Can you please how to uninstall with package management,like i have install on cent Os with

yum install elasticsearch
.Thank you.

yum remove elasticsearch should do it.

5 Likes

Thank you so much