original_string: protected function _clearAcoPaths()
      {
          $this->loadModel('User.Acos');
          $nodes = $this->Acos
              ->find()
              ->where(['plugin' => $this->params['plugin']])
              ->order(['lft' => 'ASC'])
              ->all();
  
          foreach ($nodes as $node) {
              $this->Acos->removeFromTree($node);
              $this->Acos->delete($node);
          }
  
          AcoManager::buildAcos(null, true); // clear anything else
      }
code: protected function _clearAcoPaths()
      {
          $this->loadModel('User.Acos');
          $nodes = $this->Acos
              ->find()
              ->where(['plugin' => $this->params['plugin']])
              ->order(['lft' => 'ASC'])
              ->all();
  
          foreach ($nodes as $node) {
              $this->Acos->removeFromTree($node);
              $this->Acos->delete($node);
          }
  
          AcoManager::buildAcos(null, true); // clear anything else
      }
code_tokens: protected function _clearAcoPaths ( ) { $ this -> loadModel ( 'User.Acos' ) ; $ nodes = $ this -> Acos -> find ( ) -> where ( [ 'plugin' => $ this -> params [ 'plugin' ] ] ) -> order ( [ 'lft' => 'ASC' ] ) -> all ( ) ; foreach ( $ nodes as $ node ) { $ this -> Acos -> removeFromTree ( $ node ) ; $ this -> Acos -> delete ( $ node ) ; } AcoManager :: buildAcos ( null , true ) ; // clear anything else }
docstring: Removes all ACOs created by the plugin being uninstall.
  
  @return void
docstring_tokens: Removes all ACOs created by the plugin being uninstall .