Skip to Content

Undeploy Your Multi-Target Application (MTA)

This tutorial shows you how to undeploy your Multi-Target Application (MTA) from Cloud Foundry.
You will learn
  • How to undeploy your Multi-Target Application (MTA)
iwonahahnIwona HahnOctober 17, 2022
Created by
iwonahahn
June 14, 2021
Contributors
iwonahahn
manjuX
slavipande
  • Step 1

    To undeploy (delete) an mtar, you don’t need to delete the apps and the services individually. The deploy service on Cloud Foundry keeps track on the deployed mtar and its resources.

    You can undeploy the applications and their service instances. Undeploying the applications and their service instances will also delete the data stored in these instances (for example, database content).

    Execute the following command to delete applications and service instances (keep in mind that this will delete all data stored in the application):

    Shell/Bash
    Copy
    cf undeploy cpapp --delete-service-keys --delete-services
    

    Delete applications only.

    Alternatively, you can delete only the applications with the following command:

    bash
    Copy
    cf undeploy cpapp
    
  • Step 2

    Congratulations! You have completed all tutorials.

    What command was used to delete Multi-Target Applications (MTA) from Cloud Foundry?

Back to top