<p>I've followed a Kubernetes tutorial similar to:
<a href="https://kubernetes.io/docs/tasks/administer-cluster/declare-network-policy/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/administer-cluster/declare-network-policy/</a> which created some basic networkpolicies as follows:</p>

<pre><code>root@server:~# kubectl get netpol -n policy-demo
NAME           POD-SELECTOR   AGE
access-nginx   run=nginx      49m
default-deny   &lt;none&gt;         50m
</code></pre>

<p>I saw that I can delete the entire namespace (pods included) using a command like "kubectl delete ns policy-demo", but I can't see what command I need to use if I just want to delete a single policy (or edit it even).</p>

<p>How would I use kubectl to delete just the "access-nginx" policy above?</p>

<p>This should work. A similar command works at my end.</p>

<pre><code>kubectl -n policy-demo delete networkpolicy access-nginx
</code></pre>
