code: def absent(name, profile='grafana'):
      '''
      Ensure that a data source is present.
  
      name
          Name of the data source to remove.
      '''
      if isinstance(profile, string_types):
          profile = __salt__['config.option'](profile)
  
      ret = {'result': None, 'comment': None, 'changes': {}}
      datasource = _get_datasource(profile, name)
  
      if not datasource:
          ret['result'] = True
          ret['comment'] = 'Data source {0} already absent'.format(name)
          return ret
  
      requests.delete(
          _get_url(profile, datasource['id']),
          headers=_get_headers(profile),
          timeout=profile.get('grafana_timeout', 3),
      )
  
      ret['result'] = True
      ret['comment'] = 'Data source {0} was deleted'.format(name)
  
      return ref absent(name, profile='grafana'):
      '''
      Ensure that a data source is present.
  
      name
          Name of the data source to remove.
      '''
      if isinstance(profile, string_types):
          profile = __salt__['config.option'](profile)
  
      ret = {'result': None, 'comment': None, 'changes': {}}
      datasource = _get_datasource(profile, name)
  
      if not datasource:
          ret['result'] = True
          ret['comment'] = 'Data source {0} already absent'.format(name)
          return ret
  
      requests.delete(
          _get_url(profile, datasource['id']),
          headers=_get_headers(profile),
          timeout=profile.get('grafana_timeout', 3),
      )
  
      ret['result'] = True
      ret['comment'] = 'Data source {0} was deleted'.format(name)
  
      return ret
docs: Ensure that a data source is present.
  
      name
          Name of the data source to remove.