/** * 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. */ public function deleteAll($idSite) { $this->checkSingleIdSite($idSite, $extraMessage = "Note: Cannot delete annotations from multiple sites."); Piwik::checkUserHasSuperUserAccess(); $annotations = new AnnotationList($idSite); // remove the notes & save the list $annotations->removeAll($idSite); $annotations->save($idSite); }