Deleting a Network Firewall Policy
You can delete a network firewall policy from Oracle Cloud Infrastructure.
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.
- Select the compartment that contains the policy that you want to delete.
- Click the name of the policy you want to delete to view its details page.
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.
- 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.