1 2 |
<span class="k">for </span>HELMNAME <span class="k">in</span> <span class="sb">`</span>helm list <span class="nt">-a</span> <span class="nt">-o</span> json | jq <span class="nt">-r</span> <span class="s1">'.[].name'</span><span class="sb">`</span> <span class="p">;</span> <span class="k">do </span>helm delete <span class="k">${</span><span class="nv">HELMNAME</span><span class="k">}</span> <span class="p">;</span> <span class="k">done</span> |