The way you remove a Web application depends on the Web application server that you are using. Refer to the documentation on removing Web applications for your server.
To undeploy a Web application from JBoss, remove
the WAR file from the JBoss default/deploy directory.