0

I'm using Helm 3 to install kubernetes packages. Now I need to remove/clean up what was installed, I tried with unintall but it seems it’s looking for a release (not sure what it does mean) not a package:

$ helm install prometheus stable/prometheus-operator --namespace monit
$ helm delete prometheus
Error: uninstall: Release not loaded: prometheus: release: not found

When trying to list if there was any release I get nothing!

$ helm list
NAME    NAMESPACE   REVISION    UPDATED STATUS  CHART   APP VERSION

What's the proper way to delete prometheus resources in this case?

bachr
  • 153
  • 5
  • 11

1 Answers1

3

With Helm 3 commands without explicit namespace are issued on default namespace: see Helm 3 FAQ at chapter Release Names are now scoped to the Namespace

If you issued helm install --namespace monit, you then have to list your installed package with:

helm list -n monit

and uninstall it with:

helm uninstall prometheus -n monit

As you can see, helm delete command is substituted by helm uninstall, you can see it at chapter CLI Command Renames on the same doc as before.

oldgiova
  • 406
  • 2
  • 5