How to undeploy a Mule application

Home > Search > How-to
  by

Using the Mule web console

  1. In the Mule web console, select the Deployments tab.
  2. 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

 


Verification

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.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 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>]

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments