To undeploy content you need to delete the content from the repository and delete the app-host service plan instance.
-
Open the Cloud Foundry command line interface (CLI).
-
Undeploy the
*.mtarfile using the CLI command:cf undeployand add the--delete-services --delete-service-keysoption.Example:
cf undeploy html5.repo.deployer.myHTML5App --delete-services --delete-service-keys-
Use the
–delete-servicesoption, to delete theapp-hostservice plan instance and the application content from HTML5 application repository. -
For the
cf undeploycommand, you need themta id. To get themta id, do one of the following:-
Call
cf mtas. -
Check the
mtad.yaml ID.
-
If you do not want to use the
–delete-servicesoption, you can delete theapp-hostservice plan instance manually using the CLI command:cf delete-service SERVICE-NAME. -