Description
This article describes how to delete VDOM(s) in the GUI when they cannot be deleted despite not being used anywhere in the FortiGate.
Scope
FortiGate, VDOM.
Solution
- In the screenshot below, the VDOM 'Klint1' is not referenced in any configuration in the FortiGate. It should therefore be possible to delete it using the 'Delete' option. However, the 'Delete' option is greyed out.
- Selecting the 'Ref count 15' brings up the following screen, which clearly shows that this VDOM is not used anywhere, and that the number of objects is only 5.
- The right information related to Object dependencies for this VDOM 'Klint1' which is 'Ref count' can be seen via the CLI using the command 'diagnose sys cmdb refcnt show system.vdom.name Klint1'.
4. Though there are actual number of references showing via CLI, it should not stop us from deleting the VDOM as the 'admin' user belongs to 'root' vdom.
- To resolve this, open the VDOM 'Klint1', switch the Type from 'Traffic' to 'Admin', select OK and toggle back to 'Traffic' and select OK.
- It can be seen that, the 'Ref count' is updated appropriately after that and also, the 'Delete' option will be available.
Note: Before deleting the VDOM, make sure that the VDOM is not used in any configuration of the FortiGate. As a good practice, back up the Configuration file before making any changes.