def METHOD_NAME(cls, fig):
    """Destroy figure *fig*."""
    num = next((manager.num for manager in cls.figs.values()
                if manager.canvas.figure == fig), None)
    if num is not None:
        cls.destroy(num)