how to completely remove tomcat 7 from ubuntu 14.04

Viewed 31139

I search the web as to how remove tomcat7 on Ubuntu 14.04 completely 100% no config files etc ... leaving behind, but there is not one post to show how to step by step.

2 Answers

The answer by user Dung works as well on ubuntu 16/18. you may as well do:

find / -name "*tomcat*" | xargs rm -f

To delete the files without having to do it manually, make sure you are not on root on the first try. You may end up deleting something else. Maybe after checking what couldn't be deleted (root stuff), you may then do it on root or delete the files manually.

Related