SUSE Support

Here When You Need Us

Resolving Helm Release Deletion Failures

This document (000022001) is provided subject to the disclaimer at the end of this document.

Environment

Kubernetes cluster

Helm


Situation

Unable to uninstall a Helm release, which has become stuck in an uninstalling or other pending state. This issue often occurs after a Kubernetes cluster has been upgraded to a newer version that no longer supports the API versions used by the Helm chart.

When you attempt to delete the release, you receive an error message indicating that a deprecated or removed API resource could not be found.

For example:

Error: failed to delete release: [release-name]

uninstall.go:117: [debug] uninstall: Failed to delete release: [unable to build kubernetes objects for delete: resource mapping not found for name: "[release-name]" namespace:
"" from "": no matches for kind "[CRD-name]" in version "example.crd.io/v1alpha3"
ensure CRDs are installed first]

Resolution

The recommended way to fix this is by using the mapkubeapis Helm plugin. This tool updates the metadata of a Helm release, replacing deprecated API versions with their supported equivalents, allowing Helm to successfully interact with the cluster's current API server.

Step 1: Install the mapkubeapis Plugin First, install the plugin if you don't already have it.

helm plugin install https://github.com/helm/helm-mapkubeapis

Step 2: Update the Release Metadata Next, run the plugin against your problematic release. This command will scan the release metadata for outdated APIs and update them to the current, supported versions. In this example, we'll use a release named app-metrics in the monitoring namespace

helm mapkubeapis -n monitoring app-metrics

Step 3: Uninstall the Release Once the metadata has been updated, you can proceed with the uninstallation. Helm will now be able to find and delete the resources using the correct APIs.

helm uninstall app-metrics -n monitoring

Cause

The problem lies in the Helm release's stored metadata. When a Helm chart is installed, it saves a record of the Kubernetes API versions it used.

If you later upgrade your cluster to a version that removes or changes these APIs (for instance, a transition from v1beta1 to v1), Helm's uninstallation process fails because it tries to delete resources using an API that no longer exists in the cluster. This leaves the release in an unmanageable state, preventing a clean uninstallation.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000022001
  • Creation Date: 21-Aug-2025
  • Modified Date:22-Aug-2025
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.