code: def close_tab(self, *args):
          
          prompt_cfg = self.settings.general.get_int('prompt-on-close-tab')
          self.get_notebook().delete_page_current(prompt=prompt_cfg)
docs: Closes the current tab.