How to remove User/Group accounts (CLI)

GioP
GioP Posts: 2
I am looking for a way to remove users on ZLD appliances, similar to the one explained here:
https://mysupport.zyxel.com/hc/en-us/articles/360006854279--ZLD-How-to-add-new-User-Group-accounts-CLI-
Any hints?

Best Answers

  • Zyxel_Jeff
    Zyxel_Jeff Posts: 289  Zyxel Employee
    edited May 23 Answer ✓

    Welcome to Zyxel community. You can use the below CLI to delete user and user group. 

    CLI :
    configure terminal
    no username name

    Example: to delete the user account user1
    Router #configure terminal 
    Router(config)# no username user1

    CLI :
    configure terminal
    no groupname groupname

    Example: to delete the user group testusergroup
    Router #configure terminal 
    Router(config)# no groupname testusergroup

    BTW, if you delete the user group already, it does not mean the users existing in the user group would be deleted, too. Only the user group would be deleted, you still need to delete those users respectively.

  • Zyxel_Jeff
    Zyxel_Jeff Posts: 289  Zyxel Employee
    Answer ✓

    Please refer to the below example.
    CLI :
    configure terminal
    groupname <groupname>
    no user < username >

    Example: to delete an account user1 from a user group testusergroup
    Router# configure terminal
    Router(config)# groupname testusergroup
    Router(group-user)# no user user1

All Replies

  • GioP
    GioP Posts: 2
    edited May 25
    Thank you very much Jeff,
    there is just an information I still need: when you try removing a user which is member of a group, you get:
    retval = -3004
    ERROR: User in use.
    Is there a way to remove a user from groups using the CLI?

Security Highlight