<p>How do I delete multiple kubernetes namespaces with a single command.</p>

Hugh Brien
<pre><code>kubectl delete namespace $(kubectl get namespaces --no-headers=true -o custom-columns=:metadata.name | grep &lt;wildcard&gt; - )
</code></pre>
<p>For example :</p>
<pre><code>kubectl delete namespace $(kubectl get namespaces --no-headers=true -o custom-columns=:metadata.name | grep my_namespace_* - )
</code></pre>
