5.6. Undeploy an Application in a Standalone Server Using the Management CLI
Prerequisites
Procedure 5.4. Undeploy an Application in a Standalone Server
By default the 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 undeploy command
To undeploy the application and delete the deployment content, enter the Management CLI undeploy command with the filename of the application deployment.[standalone@localhost:9999 /] undeploy test-application.war
To undeploy the application, but retain the deployment content, enter the Management CLI undeploy command with the filename of the application deployment and the parameter--keep-content
.[standalone@localhost:9999 /] undeploy test-application.war
--keep-content
Result
The specified application is now undeployed. Note that the undeploy command does not produce any output to the Management CLI if it is successful.