Middle
What needs to be done to delete entities in Helm?
sobes.tech AI
Answer from AI
# Helm release removal
helm uninstall <release_name>
# Removing a chart (if installed locally or from a repository)
# This will only remove the chart, not the installed release.
# helm delete <chart_name> - deprecated, use uninstall
For deeper cleanup, if standard removal doesn't help or artifacts remain (rare):
- Manually check for Kubernetes objects (Deployment, Service, Ingress, PersistentVolumeClaim, etc.) in the target namespace and delete them with
kubectl delete. - Delete PersistentVolume if it wasn't automatically removed with PersistentVolumeClaim (depends on
reclaimPolicy). - Check for finalizers on objects that may prevent deletion and remove them manually if necessary (extreme measure).
# Example of deleting objects via kubectl after failed helm uninstall
kubectl delete deployment,service,ingress -l release=<release_name> -n <namespace>