Skip to main content
awasfi_FTNT
Staff
Staff
Nov 25, 2024 4:16 PM UTC

Delete an object which is not used on any policy and cannot be deleted due to no write permission error

Description

How to delete firewall objects that failed to delete due to a 'no write permission' error, as well as objects not used on any policy package.

Scope

FortiManager.

Solution

In some cases, a firewall object cannot be deleted from FortiManager even when it is not used anywhere in a policy package. The reason is that the object was used on a deleted policy within the policy package and still has a reference to this policy package.

 

When trying to delete the object, the following error appears:
Failed to delete object(s) due to the following reason: no write permission.

 

5.jpg


However, when checking where this object is being used, it shows No record found:

 

1.jpg

 

Proceed to delete the object, and the following confirmation message will appear:

 

2.jpg

 

Upon selecting OK, the following screen will show a message indicating that the object is used, even though the object is not used on any policy.

 

3.jpg

 

Selecting 'Where used' again indicates that the object is not associated with any configuration.

 

4.jpg

 

Selecting Delete Anyway will result in the following error message as the object has references to deleted policies:

 

5.jpg

 

Use the following command to remove invalid policy references:

 

diagnose cdb upgrade force-retry del-invalid-node

 

6.jpg

 

Next, the object can be deleted from the GUI after the invalid reference has been removed.

 

This command exists starting from FortiManager versions 7.2.6, 7.4.4, 7.6.0, and above.

Related documents:

Technical Tip: How to troubleshoot issues when trying to delete unused address objects in FortiManager

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024