code: func (s *Service) DeleteTelegrafConfig(ctx context.Context, id platform.ID) error {
  	op := OpPrefix + platform.OpDeleteTelegrafConfig
  	var err error
  	if !id.Valid() {
  		return &platform.Error{
  			Op:   op,
  			Code: platform.EEmptyValue,
  			Err:  platform.ErrInvalidID,
  		}
  	}
  	if _, pErr := s.findTelegrafConfigByID(ctx, id); pErr != nil {
  		return pErr
  	}
  	s.telegrafConfigKV.Delete(id)
  
  	err = s.deleteUserResourceMapping(ctx, platform.UserResourceMappingFilter{
  		ResourceID: id,
  		Resource:   platform.TelegrafsResource,
  	})
  
  	if err != nil {
  		return &platform.Error{
  			Code: platform.ErrorCode(err),
  			Op:   op,
  			Err:  err,
  		}
  	}
  	return nil
  }
docs: // DeleteTelegrafConfig removes a telegraf config by ID.