code: func (p *Panel) ResetTargets() {
  	switch p.OfType {
  	case GraphType:
  		p.GraphPanel.Targets = nil
  	case SinglestatType:
  		p.SinglestatPanel.Targets = nil
  	case TableType:
  		p.TablePanel.Targets = nil
  	}
  }
docs: // ResetTargets delete all targets defined for a panel.