Uninstall elsticsearch on centOS

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.


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.

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.


Thank you so much