<p>we have pods on <a href="https://cloud.google.com/kubernetes-engine" rel="nofollow noreferrer">GKE</a>.</p>
<p>we can delete pod by <code>kubectl -n &lt;ns&gt; delete pod &lt;pod name&gt;</code>.
we can also delete the pod by clicking the following delete button.</p>
<p><a href="https://i.stack.imgur.com/ZYP6o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZYP6o.png" alt="enter image description here" /></a></p>
<p>what are the differences?
what are the results if I did both?</p>
<p>thanks</p>
<p><strong>UPDATE</strong></p>
<p>thanks. The pod has <code>terminationGracePeriodSeconds: 60</code>. what will happen if I run <code>kubectl delete pod pod_name</code> and then <code>ctrl C</code>? Then click the delete button on the web ui? all these are in 60 seconds.</p>
<p>I am curious whether it will delete the pod by force without waiting for 60 seconds.</p>
<p>thanks</p>
<pre><code>$ kubectl -n ns delete pod pod-0
pod &quot;pod-0&quot; deleted
^C
</code></pre>

BAE
<p>Both trigger the same API call to the kube-apiserver. If you try to delete something twice, the second call will fail either &quot;already deleted&quot; or &quot;not found&quot;.</p>
