One important function of the Apache Tomcat manager web application is to undeploy web applications. In other words, the website will be removed from Tomcat and therefore no longer be available on the World Wide Web.
To learn how to undeploy web applications using the Apache Tomcat manager, follow these eight steps:
http://localhost:8080/manager/htmland submit that address to the browser.
tomcat-users.xml(make sure to provide the correct spelling and case):
DemoWebsitehas an associated set of buttons that allows you to start, stop, reload, and undeploy the web application. We will focus our attention now on the undeploy operation. Undeploy will delete the WAR file and unpacked folder under the "webapps" folder (note: if you have deployed the web application as a context file, then the context file will be deleted from
c:/Tomcat8/conf/Catalina/localhost). **IMPORTANT: Before you undeploy your website, make sure you have a backup of the WAR file (or context file) in case you need to deploy the web application in the future.
undeploybutton associated with
DemoWebsite. The manager will respond indicating the web application has been undeployed: