public/plugin/buycourses/uninstall.php
<?php
/* For license terms, see /license.txt */
/**
* This script is included by main/admin/settings.lib.php when unselecting a plugin
* and is meant to remove things installed by the install.php script in both
* the global database and the courses tables.
*/
/**
* Queries.
*/
require_once __DIR__.'/config.php';
BuyCoursesPlugin::create()->uninstall();