original_string: public function deletePlugin($id)
      {
          /*
           * Rollback plugin
           */
          UpdateManager::instance()->rollbackPlugin($id);
  
          /*
           * Delete from file system
           */
          if ($pluginPath = self::instance()->getPluginPath($id)) {
              File::deleteDirectory($pluginPath);
          }
      }
code: public function deletePlugin($id)
      {
          /*
           * Rollback plugin
           */
          UpdateManager::instance()->rollbackPlugin($id);
  
          /*
           * Delete from file system
           */
          if ($pluginPath = self::instance()->getPluginPath($id)) {
              File::deleteDirectory($pluginPath);
          }
      }
code_tokens: public function deletePlugin ( $ id ) { /*
           * Rollback plugin
           */ UpdateManager :: instance ( ) -> rollbackPlugin ( $ id ) ; /*
           * Delete from file system
           */ if ( $ pluginPath = self :: instance ( ) -> getPluginPath ( $ id ) ) { File :: deleteDirectory ( $ pluginPath ) ; } }
docstring: Completely roll back and delete a plugin from the system.
  @param string $id Plugin code/namespace
  @return void
docstring_tokens: Completely roll back and delete a plugin from the system .