Wednesday, July 19, 2017

Mule ESB - How to undeploy a flow?

In this blog, I'm going to explain how to undeploy a flow in a clean way.

When we are starting a 'Anypoint studio', we have to choose the workspace.

For this explanation, we will assume that

1. our workspace as below
/home/tharanga/AnypointStudio/workspace
2. create a project as 'demo-http'

Once we run this application as 'Mule Application', we can see that, it creates the below file and folder inside the '/home/tharanga/AnypointStudio/workspace/.mule/apps' location.
drwxrwxr-x  5 tharanga tharanga 4096 ජූලි   19 19:58 demo-http/
-rw-rw-r--  1 tharanga tharanga   77 ජූලි   19 19:58 demo-http-anchor.txt

 To undeploy this flow, you can delete the <project_name>-anchor.txt file. According to this example file would be demo-http-anchor.txt

Note: anchor file location path would be <Anypoint_studio_workspace>/.mule/apps

Note: Inside the anchor file you can see the below content.
Delete this file while Mule is running to remove the artifact in a clean way.

Enjoy...!!

1 comment:

  1. Nice article, it is very useful for everyone. Thanks for sharing your valuable information and time
    Mulesoft Online Training
    Mulesoft Training in Hyderabad

    ReplyDelete