What is the purpose of helm delete --purge

Chris G. picture Chris G. · Jul 30, 2018 · Viewed 42.1k times · Source

Using helm is super cool, but what is the purpose of using helm delete --purge

I can see the doc says:remove the release from the store and make its name free for later use

So what is the purpose of saving the name and not releasing it with helm delete?

Answer

Jainish Shah picture Jainish Shah · Aug 1, 2018

When you do helm delete $RELEASE_NAME it deletes all resources but keeps the record with $RELEASE_NAME in case you want to rollback. You can see removed releases via helm ls -a. Whereas helm delete --purge $RELEASE_NAME removes records and make that name free to be reused for another installation.