<p>I am stuck in a situation where my automated jobs stuck in an infinite loop for a <strong>docker container</strong>.
Now I want to stop that operation by some command(s) using <strong>kubectl</strong></p>

<p>Note: I don't want to restart the container but to stop the current running job (operation).</p>

Asad Shakeel
<p>If you want to immediately remove resources from API you can use these following <strong>flags.</strong></p>

<p><code>kubectl delete pod $POD_NAME --force --grace-period=0</code></p>

<p>Keep in mind that when you delete the Resources  forcefully there is a chance of data loses, here is the detail <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods" rel="nofollow noreferrer">termination-of-pods</a></p>

<p>you can get further options and information with </p>

<p><code>kubectl delete pods --help</code></p>
