Using the Mule web console
- In the Mule web console, select the Deployments tab.
- Check the application that needs to be undeployed, and select Undeploy.
Using the command line
A mule app can be undeployed on the command line by removing the app's anchor.txt file. The app's anchor.txt file should be located in the mule_home/apps/ directory. In this example, an app named "myApp" is currently deployed to myJVM.
~]# ls -l /opt/MuleSoft/myJVM/apps drwxr-sr-x 3 root root 4096 May 29 21:59 myApp -rw-r--r-- 1 root root 77 May 29 21:59 myApp-anchor.txt
Remove the anchor.txt file to undeploy the app. A few moments after the anchor.txt file is removed, the anchor.txt as well as the directory and subdirectories that make up the app will also be removed.
~]# rm /opt/MuleSoft/myJVM/apps/myApp-anchor.txt
After the application is undeployed, the icon to the left of the application should turn yellow.
You can also check the mule_ee.log for confirmation that the application was undeployed.
INFO yyyy-mm-dd hh:mm:ss,sss  org.mule.module.launcher.DefaultArchiveDeployer: ============== Request to Undeploy Artifact: appname-<version>-SNAPSHOT-<int> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Undeployed artifact 'appname-<version>-SNAPSHOT-<int>' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO yyyy-mm-dd hh:mm:ss,sss  com.mulesoft.mmc.agent.service.impl.ApplicationServiceImpl: Successfully undeployed [appname-<version>-SNAPSHOT-<int>]