def delete(self):
        self._element.delete()
        self._element = None
Call unregister on window close
dataset/ETHPy150Open python-openxml/python-docx/docx/styles/style.py/BaseStyle.delete--crossover with--dataset/ETHPy150Open glue-viz/glue/glue/viewers/common/qt/data_viewer.py/DataViewer.closeEvent