code: def deluser(name, username, root=None):
      '''
      Remove a user from the group.
  
      CLI Example:
  
      .. code-block:: bash
  
           salt '*' group.deluser foo bar
  
      Removes a member user 'bar' from a group 'foo'. If group is not present
      then returns True.
      '''
      grp_info = __salt__['group.info'](name)
      try:
          if username in grp_info['members']:
              cmd = 'chgrpmem -m - {0} {1}'.format(username, name)
              ret = __salt__['cmd.run'](cmd, python_shell=False)
              return not ret['retcode']
          else:
              return True
      except Exception:
          return Truf deluser(name, username, root=None):
      '''
      Remove a user from the group.
  
      CLI Example:
  
      .. code-block:: bash
  
           salt '*' group.deluser foo bar
  
      Removes a member user 'bar' from a group 'foo'. If group is not present
      then returns True.
      '''
      grp_info = __salt__['group.info'](name)
      try:
          if username in grp_info['members']:
              cmd = 'chgrpmem -m - {0} {1}'.format(username, name)
              ret = __salt__['cmd.run'](cmd, python_shell=False)
              return not ret['retcode']
          else:
              return True
      except Exception:
          return True
docs: Remove a user from the group.
  
      CLI Example:
  
      .. code-block:: bash
  
           salt '*' group.deluser foo bar
  
      Removes a member user 'bar' from a group 'foo'. If group is not present
      then returns True.