How to remove Tomcat on cPanel

Want to remove Tomcat from cPanel?

Log-into your server as root using ssh:

Execute the following command to stop the Tomcat process:
# /usr/sbin/stoptomcat

…and to remove the next files, enter:
# rm -f /usr/sbin/starttomcat
# rm -f /usr/sbin/startomcat
# rm -f /usr/sbin/stoptomcat

Finally, remove all mod_jk lines from httpd.conf, including addmodule, loadmodule, and include lines.