<p>I want to delete a pod permanently so I can create the deployment.yaml and derveice.yaml again from fresh, so I tried:</p>

<pre><code> kubctl delete pod &lt;pod&gt;
</code></pre>

<p>and the pod is still there, also tried:</p>

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

<p>and didnt work.</p>

<p>the only thing that worked is when I set the deployment <code>replicas: 0</code> and then apply it, but the when i try to create new deployment i get:</p>

<blockquote>
  <p>Error from server: error when creating "myService/deployment.yaml":
  deployments.extensions "myService" already exists</p>
</blockquote>

<p>Pods are created by Deployment, so when you delete a Pod then Deployment automatically create it base on <code>replicas</code> value, you have to delete Deployment and then create it again,</p>

<p>You can use:</p>

<pre><code>kubectl create -f deployment.yml
kubectl delete -f deployment.yml
</code></pre>
