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.
Dhruvin_patel
Article Id 407912
Description This article describes how to delete an address object, especially since the delete option is grayed out in the References section for loopback interfaces, hardware switches, software switches, link aggregates, and VLAN interfaces.
Scope FortiGate.
Solution

An address object that is referenced by any interface cannot be deleted; the delete option is grayed out.

 

For example, with a VLAN:

The VLAN 'Traffic_vlan' has one reference, which is an address object.

 

kb.PNG

 

Despite having zero references for the address object, it shows as grayed out.

 

kb-1.PNG

 

With a Hardware Switch:

 

kb3.PNG

 

With a Link Aggregate, Software Switch, or any other interface type.

 

In this scenario, two options are available to remove/delete the address object.

 

Option 1:

Disable the 'Create address object matching subnet' option in the interface section; this will remove the address object. The 'Create address object matching subnet' is only available in the GUI when the interface role is set to LAN or DMZ.

 

kb4.PNG

 

Option 2:

Delete the address object by navigating to Policy & Objects -> Addresses, searching for the name, and then deleting the address object.

 

kb5.PNG

 

Related articles:

Technical Tip: How to Check Referenced Objects

Troubleshooting Tip: Verifying FortiGate configuration object references and dependencies