<p>I'm trying to delete a failed pod from the <code>Pods</code> page on the Kubernetes Web UI, but it is not getting deleted. </p>

<p>I understand what the error itself is, and I believe I have resolved it by using <code>secrets</code>, since this is a private repo. That said, I cannot re-add the pod again correctly, since it already exists.</p>

<p>Here is what I am seeing on the <code>Pods</code> page in the Kubernetes UI:</p>

<p><strong>Pod Status:</strong> <code>Waiting: ContainerCreating</code></p>

<p><strong>Error</strong>:</p>

<pre><code>Failed to pull image "&lt;USERNAME&gt;/&lt;REPO&gt;:&lt;TAG&gt;": 
failed to run [fetch --no-store docker://&lt;USERNAME&gt;/&lt;REPO&gt;:&lt;TAG&gt;]: 
exit status 254 stdout: stderr: Flag --no-store has been deprecated, 
please use --pull-policy=update fetch: Unexpected HTTP code: 401, URL: https://xxxxxx.docker.io/v2/&lt;USERNAME&gt;/&lt;NAMESPACE&gt;/manifests/&lt;TAG&gt;
    Error syncing pod
</code></pre>

<p>I have also tried deleting the pod with <code>kubectl</code>, but <code>kubectl</code> can't even see the failed pod!</p>

<pre><code>$ kubectl get pods
No resources found
$ kubectl get pods --show-all
No resources found
</code></pre>

<p>Is there any other way that I can delete this pod?</p>

<p>I just found a solution to my own problem. Go to the <code>Workloads</code> page in the Kubernetes Web UI, and delete the associated <code>Deployment</code>, and the <code>Pod</code> will be deleted as well.</p>

<p>If the pod does not get deleted after this, you will need to force a delete from the command line.</p>

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