remove_application_deployment
Remove one deployment of an Application: take it off one cluster and namespace while the Application itself and its other deployments stay. Ankra uninstalls the workloads there - and with them any data in that deployment's database and volumes - and deletes the installation once the cluster has it. The Application, its settings, secrets, images and release history, its other installations, and add-ons other workloads may use are kept, so it can be deployed there again. Accepted is not done: the installation reads 'removing' until the teardown finishes (list_application_installations), or 'failed' with its reason. Refused with a conflict when that deployment is already being removed, and when nothing is deployed there. Use list_application_installations first to find the cluster and namespace. A deployment the deploy wizard made has no installation: name it by stack_name instead of namespace (get_application_deployments lists it as a deploy_run_stack row); the other stacks that deploy created stay and are named in the answer. To stop it for a while without losing anything, use park_application_deployment instead; to delete the Application everywhere, delete_application.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | Namespace the deployment runs in (part of the deployment's identity - one application can be deployed twice on one cluster). Pass this or stack_name, not both. | |
| cluster_id | Yes | UUID of the cluster the deployment runs on. | |
| stack_name | No | Stack a deploy-wizard deployment runs as, for a deployment with no installation (get_application_deployments lists it as a deploy_run_stack row). Pass this or namespace, not both. | |
| application_id | Yes | The Application's id. |