def qteRemoveMode(self, mode: str):
        """
        Remove ``mode`` and associated label.

        If ``mode`` does not exist then nothing happens and the method
        returns **False**, otherwise **True**.

        |Args|

        * ``pos`` (**QRect**): size and position of new window.
        * ``windowID`` (**str**): unique window ID.

        |Returns|

        * **bool**: **True** if the item was removed and **False** if there
          was an error (most likely ``mode`` does not exist).

        |Raises|

        * **QtmacsArgumentError** if at least one argument has an invalid type.
        """
        # Search through the list for ``mode``.
        for idx, item in enumerate(self._qteModeList):
            if item[0] == mode:
                # Remove the record and delete the label.
                self._qteModeList.remove(item)
                item[2].hide()
                item[2].deleteLater()
                self._qteUpdateLabelWidths()
                return True
        return False
Remove ``mode`` and associated label.

        If ``mode`` does not exist then nothing happens and the method
        returns **False**, otherwise **True**.

        |Args|

        * ``pos`` (**QRect**): size and position of new window.
        * ``windowID`` (**str**): unique window ID.

        |Returns|

        * **bool**: **True** if the item was removed and **False** if there
          was an error (most likely ``mode`` does not exist).

        |Raises|

        * **QtmacsArgumentError** if at least one argument has an invalid type.