Deleting policies

Delete your IBM Cloud Pak for Multicloud Management security policy.

Deleting cluster security policies from the command line (CLI)

Complete the following steps to delete your policy:

  1. 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.

  2. 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:

  1. Delete a policy by running the following command:

    oc delete policy.policy.mcm.ibm.com <policy-name> -n <namespace>
    
  2. 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:

  1. From the navigation menu, click Govern risk.
  2. Click the Policies tab.
  3. Click the Options icon (Options icon) for the policy you want to delete in the policy violation table.
  4. Click Remove.
  5. From the Remove policy dialog box, click Remove policy.

Your policy is deleted.

See Governance and risk for more policy topics.