Deleting policies
Delete your IBM Cloud Pak for Multicloud Management security policy.
- Deleting cluster security policies from the command line (CLI)
- Deleting VM security policies from the command line (CLI)
- Deleting policies from the console
Deleting cluster security policies from the command line (CLI)
Complete the following steps to delete your policy:
-
Delete a policy by running the following command:
kubectl delete policy <policy-name> -n <mcm namespace>
After your policy is deleted, it is removed from your target cluster or clusters.
-
Verify that your policy is removed by running the following command:
kubectl get policy <policy-name> -n <mcm namespace>
Deleting VM security policies from the command line (CLI)
Complete the following steps to delete your policy:
-
Delete a policy by running the following command:
oc delete policy.policy.mcm.ibm.com <policy-name> -n <namespace>
-
Verify that your policy is removed by running the following command:
oc get policy.policy.mcm.ibm.com <policy-name> -n <namespace>
Deleting policies from the console
Complete the following steps to delete your policy:
- From the navigation menu, click Govern risk.
- Click the Policies tab.
- Click the Options icon (
) for the policy you want to delete in the policy violation table.
- Click Remove.
- From the Remove policy dialog box, click Remove policy.
Your policy is deleted.
See Governance and risk for more policy topics.