code: def absent(name):
      '''
      Ensure user account is absent
  
      name : string
          username
      '''
      ret = {'name': name,
             'changes': {},
             'result': True,
             'comment': ''}
  
      # remove if needed
      if name in __salt__['pdbedit.list'](False):
          res = __salt__['pdbedit.delete'](name)
          if res[name] in ['deleted']:  # check if we need to update changes
              ret['changes'].update(res)
          elif res[name] not in ['absent']:  # oops something went wrong
              ret['result'] = False
      else:
          ret['comment'] = 'account {login} is absent'.format(login=name)
  
      return ref absent(name):
      '''
      Ensure user account is absent
  
      name : string
          username
      '''
      ret = {'name': name,
             'changes': {},
             'result': True,
             'comment': ''}
  
      # remove if needed
      if name in __salt__['pdbedit.list'](False):
          res = __salt__['pdbedit.delete'](name)
          if res[name] in ['deleted']:  # check if we need to update changes
              ret['changes'].update(res)
          elif res[name] not in ['absent']:  # oops something went wrong
              ret['result'] = False
      else:
          ret['comment'] = 'account {login} is absent'.format(login=name)
  
      return ret
docs: Ensure user account is absent
  
      name : string
          username