Delete a Firewall Policy

You can delete a firewall policy from Oracle Cloud Infrastructure.

Important

You can't delete a firewall 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. On the navigation menu, click Identity & Security. Under Firewalls, click Network Firewall Policies.
    2. Select the compartment.
    3. Click the policy.
    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.
  • 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.