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);
    }
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);
    }
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 ) ; }
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
Soft deletes a given Goal . Stats data in the archives will still be recorded but not displayed .