public function uninstall(\Eccube\Entity\Plugin $plugin)
{
$pluginDir = $this->calcPluginDir($plugin->getCode());
$this->app->removePluginConfigCache();
Cache::clear($this->app, false);
$this->callPluginManagerMethod(Yaml::parse(file_get_contents($pluginDir . '/' . self::CONFIG_YML)), 'disable');
$this->callPluginManagerMethod(Yaml::parse(file_get_contents($pluginDir . '/' . self::CONFIG_YML)), 'uninstall');
$this->unregisterPlugin($plugin);
$this->deleteFile($pluginDir);
$this->app->writePluginConfigCache();
return true;
}