code: def delete(name):
      '''
      Remove the named group
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' group.delete foo
      '''
      if salt.utils.stringutils.contains_whitespace(name):
          raise SaltInvocationError('Group name cannot contain whitespace')
      if name.startswith('_'):
          raise SaltInvocationError(
              'Salt will not remove groups beginning with underscores'
          )
      if not info(name):
          return True
      cmd = ['dseditgroup', '-o', 'delete', name]
      return __salt__['cmd.retcode'](cmd, python_shell=False) == f delete(name):
      '''
      Remove the named group
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' group.delete foo
      '''
      if salt.utils.stringutils.contains_whitespace(name):
          raise SaltInvocationError('Group name cannot contain whitespace')
      if name.startswith('_'):
          raise SaltInvocationError(
              'Salt will not remove groups beginning with underscores'
          )
      if not info(name):
          return True
      cmd = ['dseditgroup', '-o', 'delete', name]
      return __salt__['cmd.retcode'](cmd, python_shell=False) == 0
docs: Remove the named group
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' group.delete foo