10.3.3. Undeploy an Application in a Standalone Server Using the Management CLI
Prerequisites
Procedure 10.5. Undeploy an Application in a Standalone Server
undeploy command will undeploy and delete the deployment content from a standalone instance of JBoss EAP. To retain the deployment content, add the parameter --keep-content.
Run the
undeploycommandTo undeploy the application and delete the deployment content, enter the Management CLIundeploycommand with the filename of the application deployment.[standalone@localhost:9999 /]
undeploy test-application.warTo undeploy the application, but retain the deployment content, enter the Management CLIundeploycommand with the filename of the application deployment and the parameter--keep-content.[standalone@localhost:9999 /]
undeploy test-application.war--keep-content
The specified application is now undeployed. Note that the undeploy command does not produce any output to the Management CLI if it is successful.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.