How to uninstall the redis installed from source in ubuntu 12.04?

Go to source tree and try this command:

make uninstall

If that doesn't work you can list the steps that the software would take to install itself (without actually installing anything):

make -n install

Following the 'make -n install' I was able to deduce that this should do the trick:

rm /usr/local/bin/redis-*

I could successfully remove it by using following command on Ubuntu from terminal:

 $ sudo apt-get remove redis-server