Deleting a Network Firewall Policy

You can delete a network firewall policy from Oracle Cloud Infrastructure.

Important

You can't delete a policy if it's associated with a firewall. To delete a policy that's associated with a firewall, first associate the firewall with a different policy, and then delete the policy.

    1. Open the navigation menu and click Identity & Security. Under Firewalls, click Network Firewall Policies.
    2. Select the compartment that contains the policy that you want to delete.
    3. Click the name of the policy you want to delete to view its details page.
    4. Click Delete.
      Note

      If the policy is associated with a firewall, the Delete button is disabled. Associate the firewall with a different policy, then delete the now unassociated policy.
    5. Confirm the deletion.
  • Use the network-firewall network-firewall-policy delete command and required parameters to delete a firewall.
    oci network-firewall network-firewall-policy delete 
    --network-firewall-policy-id network_firewall_policy_id [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the DeleteNetworkFirewallPolicy operation to delete a policy.