code: def remove_all_logger_handlers(logger: logging.Logger) -> None:
      
      while logger.handlers:
          h = logger.handlers[0]
          logger.removeHandler(h)
docs: Remove all handlers from a logger.
  
      Args:
          logger: logger to modify