How to completely uninstall eclipse?

I'm working on Eclipse Indigo on Ubuntu 12.04.

I'm trying to completely uninstall Eclipse (with Synaptic Package Manager + Mark for complete removal), but when I reinstall it, I clearly see that it has kept all parameters, and history, which is what I'm trying to get rid of. I also tried the following.

sudo apt-get purge eclipse
rm -r ~/.eclipse/

As suggested here, no luck either.


Solution 1:

Run following commands:

sudo apt-get autoremove eclipse*
rm -r ~/.eclipse/

This will uninstall the dependencies and related packages that were installed along with eclipse. This should do the trick.

sudo snap remove eclipse

Solution 2:

You were almost done. Add an asterisk (*) at the end of eclipse word.

sudo apt-get autoremove eclipse*
rm -r ~/.eclipse/

Today I have encountered the same problem and searched for a solution. I have seen this question. I have tried the same steps but failed. Then a friend of mine used those commands above.

It removed all about eclipse.