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:
To delete all the 'block' group and all members can be done as below:
config firewall addrgrp unset member <----- It will remove all the members from the 'block' group. end
config firewall address purge <----- It will delete all addresses; those that had referenced addresses can not be deleted.
This operation will clear all table! 185.39.19.126 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. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.