Delete Network Policies
This section introduces how to delete network policies.
| Note |
|---|
Network policies cannot be recovered after deletion, so please proceed with caution. |
Prerequisites
-
You should join a cluster and have the Cluster Network Resource Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".
-
KubeSphere Network should have been installed and enabled.
Delete a Single Network Policy
-
Log in to the KubeSphere web console with a user who has the Cluster Network Resource Management permission, and access your cluster.
-
Click Network > Network Policies in the left navigation pane.
-
Click
on the right side of the network policy you want to delete, and then select Delete from the dropdown list.
-
In the Delete Network Policy dialog box, enter the name of the network policy, and then click OK.
Delete Multiple Network Policies
-
Log in to the KubeSphere web console with a user who has the Cluster Network Resource Management permission, and access your cluster.
-
Click Network > Network Policies in the left navigation pane.
-
Select the checkboxes on the left side of the network policies you want to delete, and then click Delete above the network policy list.
-
In the Delete Multiple Network Policies dialog box, enter the names of the network policies, and then click OK.
Note Please separate multiple names using a comma (,) and a space.
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.