original_string: public function remove($path)
      {
          $contents = $this->Acos->node($path);
          if (!$contents) {
              return false;
          }
  
          $content = $contents->first();
          $this->Acos->removeFromTree($content);
          $this->Acos->delete($content);
  
          return true;
      }
code: public function remove($path)
      {
          $contents = $this->Acos->node($path);
          if (!$contents) {
              return false;
          }
  
          $content = $contents->first();
          $this->Acos->removeFromTree($content);
          $this->Acos->delete($content);
  
          return true;
      }
code_tokens: public function remove ( $ path ) { $ contents = $ this -> Acos -> node ( $ path ) ; if ( ! $ contents ) { return false ; } $ content = $ contents -> first ( ) ; $ this -> Acos -> removeFromTree ( $ content ) ; $ this -> Acos -> delete ( $ content ) ; return true ; }
docstring: Removes the given ACO and its permissions.
  
  @param string $path ACO path e.g. `ControllerName/action_name`
  @return bool True on success, false if path was not found
docstring_tokens: Removes the given ACO and its permissions .