docs: def absent(name, profile="splunk"):
      '''
      Ensure a search is absent
  
      .. code-block:: yaml
  
          API Error Search:
            splunk_search.absent
  
      The following parameters are required:
  
      name
          This is the name of the search in splunk
      '''
      ret = {
          'name': name,
          'changes': {},
          'result': True,
          'comment': '{0} is absent.'.format(name)
      }
  
      target = __salt__['splunk_search.get'](name, profile=profile)
      if target:
          if __opts__['test']:
              ret = {}
              ret["name"] = name
              ret['comment'] = "Would delete {0}".format(name)
              ret['result'] = None
              return ret
  
          result = __salt__['splunk_search.delete'](name, profile=profile)
          if result:
              ret['comment'] = '{0} was deleted'.format(name)
          else:
              ret['comment'] = 'Failed to delete {0}'.format(name)
              ret['result'] = False
      return ret