original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: 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
docstring_tokens: Controller action that deletes an annotation and returns new annotation manager HTML for the site & date range .