FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
ChrisTan
Staff
Staff
Article Id 395454
Description This article describes a fast way to clean all the unused IP addresses or delete a large group with hundreds of members
Scope FortiGate.
Solution

When FortiGate runs long time, some address groups with many members will appear. Deleting the unnecessary groups and addresses is not easy. 

 

For example, the group and addresses were created by automation or from external resources:

 

2025-06-09_09h07_24.png

 

To delete all the 'block' group and all members can be done as below:

 

  1. Release all the members from the group:

 

config firewall addrgrp
edit "block"

unset member <----- It will remove all the members from the 'block' group.

end

 

 

  1. Check all the '0' reference addresses and delete them:

 

config firewall address

purge <----- It will delete all addresses; those that had referenced addresses can not be deleted.

 

This operation will clear all table!
Do you want to continue? (y/n)y

185.39.19.126 can not be deleted because it is used by other entries.
185.39.19.127 can not be deleted because it is used by other entries.
....

 

After that, the 'block' group and its members are all removed. Back up the configuration before issuing the above commands.

 

 

Contributors