public function deleteReport($idReport)
    {
        $APIScheduledReports = $this->getReports($idSite = false, $periodSearch = false, $idReport);
        $report = reset($APIScheduledReports);
        Piwik::checkUserHasSuperUserAccessOrIsTheUser($report['login']);

        $this->getModel()->updateReport($idReport, array(
            'deleted' => 1,
        ));

        self::$cache = array();
    }
public function deleteReport($idReport)
    {
        $APIScheduledReports = $this->getReports($idSite = false, $periodSearch = false, $idReport);
        $report = reset($APIScheduledReports);
        Piwik::checkUserHasSuperUserAccessOrIsTheUser($report['login']);

        $this->getModel()->updateReport($idReport, array(
            'deleted' => 1,
        ));

        self::$cache = array();
    }
public function deleteReport ( $ idReport ) { $ APIScheduledReports = $ this -> getReports ( $ idSite = false , $ periodSearch = false , $ idReport ) ; $ report = reset ( $ APIScheduledReports ) ; Piwik :: checkUserHasSuperUserAccessOrIsTheUser ( $ report [ 'login' ] ) ; $ this -> getModel ( ) -> updateReport ( $ idReport , array ( 'deleted' => 1 , ) ) ; self :: $ cache = array ( ) ; }
Deletes a specific report

@param int $idReport
Deletes a specific report