Uninstall stack
uninstall_stackUninstall a stack: take every add-on, manifest and application of the stack off its cluster, in reverse dependency order, while the stack stays declared in Ankra and in Git, so install_stack brings it back later. Unlike delete_stack, nothing is removed from Ankra or Git. Data is treated exactly as a delete treats it: whatever a chart or operator removes with its workload is gone (an operator that owns its volume claims, such as CloudNativePG, deletes them and their data), so when the stack holds data, suggest a backup first (protect_stack with backup_now=true). Refused, with nothing changed, for a cluster that is not online, a stack with an open draft, a stack with a member whose deployment has not finished, a stack being deleted or down with its cluster, and a stack a managed service owns (retire the service instead). An uninstall of a stack that is already uninstalled with nothing up on the cluster has nothing to take off and is answered as such. Requires stacks.delete.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stack_name": "<stack_name>",
"cluster_id": "<cluster_id>"
},
"name": "uninstall_stack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| stack_name | Yes | Name of the stack to uninstall. |