public function deletePlugin($id)
    {
        /*
         * Rollback plugin
         */
        UpdateManager::instance()->rollbackPlugin($id);

        /*
         * Delete from file system
         */
        if ($pluginPath = self::instance()->getPluginPath($id)) {
            File::deleteDirectory($pluginPath);
        }
    }
public function deletePlugin($id)
    {
        /*
         * Rollback plugin
         */
        UpdateManager::instance()->rollbackPlugin($id);

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