<p>I have setup a <code>kubernetes</code> cluster which is working fine. I created <code>deployment</code> with type as <code>daemonset</code> which then created few pods and it worked fine. I made few changes so I deleted the <code>daemonset</code> using:</p>

<pre><code>kubectl delete daemonset &lt;name&gt; --namespace=clustech
</code></pre>

<p>While few pods were getting deleted, few of the machine went offline and thus the pods running on them went on to say <code>unknown</code> status. I need to remove those pods or completely remove that previous <code>daemonset</code> but unable to do. I am using below commands to delete pods:</p>

<pre><code>kubectl delete pod PODNAME --grace-period=0 --force
</code></pre>

<p>But this shows below error:</p>

<pre><code>warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
Error from server (NotFound): pods "deployment-6sj54" not found
</code></pre>

<p>How can I delete the pods.?</p>

S Andrew
<p>Re-run the second command with <code>namespace</code> parameter will do your job.</p>

<p><code>--grace-period=0 --force</code> is the right command to delete such pods.</p>
