public static function remove(\core\event\base $event) {
        global $DB;

        $DB->delete_records(self::$table, array('cmid' => $event->contextinstanceid));
    }
public static function remove(\core\event\base $event) {
        global $DB;

        $DB->delete_records(self::$table, array('cmid' => $event->contextinstanceid));
    }
public static function remove ( \ core \ event \ base $ event ) { global $ DB ; $ DB -> delete_records ( self :: $ table , array ( 'cmid' => $ event -> contextinstanceid ) ) ; }
Remove record when course module is deleted.

@param \core\event\base $event
Remove record when course module is deleted .