Created
January 27, 2022 04:12
-
-
Save zulhfreelancer/751d4f0b2fa47e2a3648ec171d3bd952 to your computer and use it in GitHub Desktop.
[Helm v3] How to uninstall all releases from all namespaces?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Require 'jq' | |
# https://stedolan.github.io/jq/ | |
helm list -A -o json | jq -r '.[] | .name + " " + .namespace' | xargs -n2 sh -c 'helm uninstall $1 -n $2' sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment