AI Agent Engineering > Deploy the agent > Undeploying an agent flow
  

Undeploying an agent flow

You can undeploy an agent flow if you no longer want the AI agent to be available for use or if you want to deploy the AI agent to a different Secure Agent.
Note: You can't undeploy an agent flow that is deployed to an unavailable Secure Agent or a Secure Agent in which the AI Agent Runtime service isn't running. If you do this and the Secure Agent or AI Agent Runtime service becomes available, the agent flow is still deployed to that Secure Agent.
    1Open the agent flow in the agent flow canvas.
    2Select Undeploy from the kebab menu in the upper right corner.
    The following image shows the Undeploy option:
    The Undeploy option is the last item in the kebab menu located in the upper right corner of the canvas.
    3When asked to confirm, click OK.