public function deleteAll($idSite)
    {
        Piwik::checkUserHasSuperUserAccess();

        $this->checkSingleIdSite($idSite, $extraMessage = "Note: Cannot delete annotations from multiple sites.");

        $annotations = new AnnotationList($idSite);

        // remove the notes & save the list
        $annotations->removeAll($idSite);
        $annotations->save($idSite);
    }
public function deleteAll($idSite)
    {
        Piwik::checkUserHasSuperUserAccess();

        $this->checkSingleIdSite($idSite, $extraMessage = "Note: Cannot delete annotations from multiple sites.");

        $annotations = new AnnotationList($idSite);

        // remove the notes & save the list
        $annotations->removeAll($idSite);
        $annotations->save($idSite);
    }
public function deleteAll ( $ idSite ) { Piwik :: checkUserHasSuperUserAccess ( ) ; $ this -> checkSingleIdSite ( $ idSite , $ extraMessage = "Note: Cannot delete annotations from multiple sites." ) ; $ annotations = new AnnotationList ( $ idSite ) ; // remove the notes & save the list $ annotations -> removeAll ( $ idSite ) ; $ annotations -> save ( $ idSite ) ; }
Removes all annotations for a single site. Only super users can use this method.

@param string $idSite The ID of the site to remove annotations for.
Removes all annotations for a single site . Only super users can use this method .