<p>I have k8s cluster with pods, deployments etc.
I am using helm to deploy my app. I want to delete all deployment and using below command</p>
<pre><code>helm delete myNamespace --purge
</code></pre>
<p>If I will look at status of my pods, I will see that there are in terminating state, problem is that it takes time. Is there any way to remove it like instantly with some force flag or something?</p>

liotur
<p>You can try the following command:</p>

<pre><code>helm delete myNamespace --purge --no-hooks
</code></pre>

<p>Also, you can use kubectl to forcefully delete the pods, instead of waiting for termination.</p>

<p>Here's what I got from this link.
<a href="https://kubernetes.io/docs/tasks/run-application/force-delete-stateful-set-pod/" rel="noreferrer">https://kubernetes.io/docs/tasks/run-application/force-delete-stateful-set-pod/</a></p>

<p>If you want to delete a Pod forcibly using kubectl version >= 1.5, do the following:</p>

<pre><code>kubectl delete pods &lt;pod&gt; --grace-period=0 --force
</code></pre>

<p>If you’re using any version of kubectl &lt;= 1.4, you should omit the --force option and use:</p>

<pre><code>kubectl delete pods &lt;pod&gt; --grace-period=0
</code></pre>

<p>If even after these commands the pod is stuck on Unknown state, use the following command to remove the pod from the cluster:</p>

<pre><code>kubectl patch pod &lt;pod&gt; -p '{"metadata":{"finalizers":null}}'
</code></pre>

<p>Always perform force deletion of StatefulSet Pods carefully and with complete knowledge of the risks involved.</p>
