Skip to main content
jaseeey
New Member
Aug 13, 2014 6:17 AM UTC
Question

Issues with deleting a VDOM

Hi, I am having issues with deleting a VDOM from a Fortigate firewall running FortiOS 4.x. I have removed all of the objects and associations possible through the GUI but I am still unable to delete the VDOM. In the configuration, I have noticed that the VDOM is still associated with the admin user. When trying to delete the VDOM, I receive this error:
Domain test-vdom: used by admin user, can not delete  Command fail. Return code -23
How can I remove the user association? Thanks, Jason.

    4 replies

    emnoc
    New Member
    Aug 13, 2014 8:04 AM UTC
    Do you have a user in that vdom? Basically you have something else tied to the vdom and this why you can delete it. If your unix skills are on par you can grab the cfg just for the vdom and parse thru it, but you have some thing in the configurations files.
    Translate
    ede_pfau
    SuperUser
    SuperUser
    Aug 13, 2014 9:12 AM UTC
    Maybe you are logged in to that VDOM? Happened to me once...
    Translate
    Repmor
    New Member
    Feb 14, 2017 1:24 PM UTC

    The VDOM is probably still attached to user dashboard.

     

    - config global

    - config system admin

    - edit "<user>"

    - unset vdom

    Translate
    emnoc
    New Member
    Feb 14, 2017 4:43 PM UTC

    1: a user left  ( admin or local )

     

    2: a group

     

    3: use diag sys checkused cmd

     

    e.g ( from cli  )

     

    diag sys checkused  system.vdom.name root

    Translate
    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