def METHOD_NAME(self, unique_id):
    """Remove a widget."""
    try:
        timer = timeit.default_timer()
        if unique_id in self.widget_loaded:
            self.widget_ready.pop(unique_id, None)
            self.widget_loaded.pop(unique_id, None)
            diff = (timeit.default_timer() - timer) * 1000
            self.logger.info(f"Widget object {unique_id.split('-')[0]} removed in {diff:.1f} ms")
    except Exception:
        self.logger.exception("Widget remove")