def destroy(self):
        """
        Fully delete this element and release the memory
        """
        if self._config is not None:
            self._config.clear()
            self._config = None
        # if hasattr(self, "engine"):
        #     self.engine = None

        Fully delete this element and release the memory
        
metadrive/base_class/configurable.py