1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/nw-networkpolicy-delete.adoc
2020-09-08 20:23:19 +00:00

26 lines
679 B
Plaintext

// Module included in the following assemblies:
//
// * networking/network_policy/deleting-network-policy.adoc
// * networking/configuring-networkpolicy.adoc
// * post_installation_configuration/network-configuration.adoc
[id="nw-networkpolicy-delete_{context}"]
= Deleting a NetworkPolicy object
You can delete a NetworkPolicy object.
.Prerequisites
* You installed the OpenShift CLI (`oc`).
* You are logged in to the cluster with a user with `cluster-admin` privileges.
.Procedure
* To delete a NetworkPolicy object, enter the following command. Replace `<policy-name>` with the name of the object.
+
[source,terminal]
----
$ oc delete networkpolicy <policy-name>
----