Chapter 19 Virtual Domains : Virtual Domains : Configuring Virtual Domains : Deleting a VDOM
  
Deleting a VDOM
Deleting a VDOM removes it from the FortiGate unit configuration.
Before you can delete a VDOM, all references to it must be removed. This includes any objects listed in “Per-VDOM settings - web-based manager”. If there are any references to the VDOM remaining, you will see an error message and not be able to delete the VDOM.
The VDOM must also be enabled. A disabled VDOM cannot be deleted. You cannot delete the root VDOM or the management VDOM.
 
Before deleting a VDOM, a good practice is to reset any interface referencing that VDOM to its default configuration, with “root” selected as the Virtual Domain.
The following procedures show how to delete the test-vdom VDOM.
To delete a VDOM - web-based manager
1. Go to Global > VDOM > VDOM.
2. Select the check box for the VDOM and then select the Delete icon.
If the Delete icon is not active, there are still references to the VDOM that must first be removed. The Delete icon is available when all the references to this VDOM are removed.
3. Confirm the deletion.
To delete a VDOM - CLI
config vdom
delete test-vdom
end