def do_logout(self, widget):
        settings_changed = False
        if "token" in self.settings.data:
            settings_changed = True
            del(self.settings.data["token"])
        if "secret" in self.settings.data:
            settings_changed = True
            del(self.settings.data["key"])
        self.islogged = False
        self.loginmenu.set_sensitive(True)
        self.logoutmenu.set_sensitive(False)
        self.window.set_title("%s - Offline Mode" % self.window_base_title)
        self.profiletabpage.hide()
        if settings_changed == True:
            self.settings.store()
Disconnect the user and remove all the cookies from the pc.
dataset/ETHPy150Open Morgawr/gogonlinux/gog_utils/gog_gui.py/GogTuxGUI.do_logout