Section: Network Policy

Delete network policy

bash
bash
kubectl delete networkpolicy allow-metrics -n observability
Explanation

Remove a NetworkPolicy.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Network Policy
List network policies
Show NetworkPolicy resources.
OpenIn sheetbashsame section
Describe network policy
Inspect ingress and egress rules.
OpenIn sheetbashsame section
Apply network policy
Create or update a NetworkPolicy manifest.
OpenIn sheetbashsame section
Delete PVC
Remove a PVC; PV behavior depends on reclaim policy.
OpenIn sheetbash1 tag match
List services
Show services across namespaces.
List PVCs
Show PersistentVolumeClaims across namespaces.