helm-uninstall
Remove a Helm release from a Kubernetes cluster by specifying its name and optional namespace to clean up deployed applications and resources.
Instructions
Uninstall a Helm release
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the release | |
| namespace | No | The namespace of the release (optional, defaults to current context namespace) |
Implementation Reference
- server.js:2153-2161 (handler)Handler for the helm-uninstall tool. Parses arguments for release name and optional namespace, constructs and executes the 'helm uninstall' command via execAsync, and returns the command output or a success message.case "helm-uninstall": { const { name, namespace } = args; const nsArg = namespace ? `-n ${namespace}` : ""; const cmd = `helm uninstall ${name} ${nsArg}`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || `Helm release ${name} uninstalled` }] }; }
- server.js:1235-1251 (registration)Tool registration entry in the tools array, including name, description, and inputSchema for validation. This is returned by the ListToolsRequestHandler.name: "helm-uninstall", description: "Uninstall a Helm release", inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the release" }, namespace: { type: "string", description: "The namespace of the release (optional, defaults to current context namespace)" } }, required: ["name"] } },
- server.js:1237-1249 (schema)Input schema defining the expected arguments: required 'name' (string) and optional 'namespace' (string). Used for tool call validation.inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the release" }, namespace: { type: "string", description: "The namespace of the release (optional, defaults to current context namespace)" } }, required: ["name"]