deploymentglassfishasadminundeploy

Undeploy all applications from Glassfish


I need a way to undeploy all my applications from Glassfish. Normally, I would use asadmin undeploy --target=[target] [appname]" for each application. My problem is that I don't know the name of all applications that are present on the server. Is there a command that would allow me to just undeploy everything? Thanks.


Solution

  • While there isn't an 'undeploy everything' command, there is a list-applications command. This page describes list-applications and some other commands that will help you achieve your goal.