<p>I ran this command to create my pod:</p>
<pre><code>kubectl run my-ngnix --image nginx

</code></pre>
<p>Now, I'm trying to delete the pod/deployment with the following command:</p>
<pre><code>kubectl delete deployment my-nginx

</code></pre>
<p>The problem is that my terminal is telling me that is not possible. Since it couldn't found the right info.</p>
<pre><code>Error from server (NotFound): deployments.apps &quot;my-nginx&quot; not found

</code></pre>
<p>If ask for all, this is what I see:</p>
<pre><code> kubectl get all
NAME           READY   STATUS    RESTARTS   AGE
pod/my-ngnix   1/1     Running   0          27m

NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   10.0.0.1     &lt;none&gt;        443/TCP   159m
root@aharo003:~# kubectl stop pods,services -l pod/m-ngnix

</code></pre>
<p>Does someone know what else should I have to do?</p>

Hvaandres
<p><code>kubectl get all</code> shows you the resources you created</p>
<p>in this case it starts with the kind and the resource name.</p>
<p>You can easily type <code>kubectl delete pod/my-ngnix</code> to delete the pod. Your command <code>kubectl run my-ngnix --image nginx</code> created just the pod without a deployment.</p>
