original_string: public function deleteGoal($idSite, $idGoal)
      {
          Piwik::checkUserHasWriteAccess($idSite);
  
          $this->getModel()->deleteGoal($idSite, $idGoal);
          $this->getModel()->deleteGoalConversions($idSite, $idGoal);
  
          $this->getGoalsInfoStaticCache()->delete(self::getCacheId($idSite));
  
          Cache::regenerateCacheWebsiteAttributes($idSite);
      }
code: public function deleteGoal($idSite, $idGoal)
      {
          Piwik::checkUserHasWriteAccess($idSite);
  
          $this->getModel()->deleteGoal($idSite, $idGoal);
          $this->getModel()->deleteGoalConversions($idSite, $idGoal);
  
          $this->getGoalsInfoStaticCache()->delete(self::getCacheId($idSite));
  
          Cache::regenerateCacheWebsiteAttributes($idSite);
      }
code_tokens: public function deleteGoal ( $ idSite , $ idGoal ) { Piwik :: checkUserHasWriteAccess ( $ idSite ) ; $ this -> getModel ( ) -> deleteGoal ( $ idSite , $ idGoal ) ; $ this -> getModel ( ) -> deleteGoalConversions ( $ idSite , $ idGoal ) ; $ this -> getGoalsInfoStaticCache ( ) -> delete ( self :: getCacheId ( $ idSite ) ) ; Cache :: regenerateCacheWebsiteAttributes ( $ idSite ) ; }
docstring: Soft deletes a given Goal.
  Stats data in the archives will still be recorded, but not displayed.
  
  @param int $idSite
  @param int $idGoal
  @return void
docstring_tokens: Soft deletes a given Goal . Stats data in the archives will still be recorded but not displayed .