public static function reset_token() {
        global $DB;
        if (!$hub = self::get_registration()) {
            return true;
        }
        $DB->delete_records('registration_hubs', array('id' => $hub->id));
        self::$registration = null;
    }
public static function reset_token() {
        global $DB;
        if (!$hub = self::get_registration()) {
            return true;
        }
        $DB->delete_records('registration_hubs', array('id' => $hub->id));
        self::$registration = null;
    }
public static function reset_token ( ) { global $ DB ; if ( ! $ hub = self :: get_registration ( ) ) { return true ; } $ DB -> delete_records ( 'registration_hubs' , array ( 'id' => $ hub -> id ) ) ; self :: $ registration = null ; }
Resets the registration token without changing site identifier so site can be re-registered

@return bool
Resets the registration token without changing site identifier so site can be re - registered