Helm delete all releases

grizzthedj picture grizzthedj · Dec 14, 2017 · Viewed 67.6k times · Source

I'm trying find a way to delete all deployed releases in Helm.

It appears that Helm does not support deleting all releases, with --all or otherwise.

Would there be another way to delete all Helm releases in one command?

Answer

grizzthedj picture grizzthedj · Dec 14, 2017

To delete all Helm releases in Linux(in Helm v2.X) with a single command, you can use some good old bash. Just pipe the output of helm ls --short to xargs, and run helm delete for each release returned.

helm ls --all --short | xargs -L1 helm delete

Adding --purge will delete the charts as well, as per @Yeasin Ar Rahman's comment.

helm ls --all --short | xargs -L1 helm delete --purge

On Windows, you can delete all releases with this command, again, with --purge deleting the charts as well.

helm del $(helm ls --all --short) --purge