public function deleteAnnotation()
    {
        if ($_SERVER["REQUEST_METHOD"] == "POST") {
            $this->checkTokenInUrl();

            // delete annotation. NOTE: permissions checked in API method
            Request::processRequest("Annotations.delete");

            return $this->getAnnotationManager($fetch = true);
        }
    }
public function deleteAnnotation()
    {
        if ($_SERVER["REQUEST_METHOD"] == "POST") {
            $this->checkTokenInUrl();

            // delete annotation. NOTE: permissions checked in API method
            Request::processRequest("Annotations.delete");

            return $this->getAnnotationManager($fetch = true);
        }
    }
public function deleteAnnotation ( ) { if ( $ _SERVER [ "REQUEST_METHOD" ] == "POST" ) { $ this -> checkTokenInUrl ( ) ; // delete annotation. NOTE: permissions checked in API method Request :: processRequest ( "Annotations.delete" ) ; return $ this -> getAnnotationManager ( $ fetch = true ) ; } }
Controller action that deletes an annotation and returns new annotation
manager HTML for the site & date range.

Query Param Input:
- idSite: The ID of the site this annotation belongs to.
- idNote: The ID of the annotation to delete.
- date: For rendering the annotation manager. @see   self::getAnnotationManager
for more info.
- period: For rendering the annotation manager. @see self::getAnnotationManager
for more info.
- lastN: For rendering the annotation manager. @see  self::getAnnotationManager
for more info.

Output:
- @see                                               self::getAnnotationManager
Controller action that deletes an annotation and returns new annotation manager HTML for the site & date range .