def remove_all_logger_handlers(logger: logging.Logger) -> None:
    """
    Remove all handlers from a logger.

    Args:
        logger: logger to modify
    """
    while logger.handlers:
        h = logger.handlers[0]
        logger.removeHandler(h)