def METHOD_NAME(binary_path: Path, reference_hash: str) -> bool:
    """Check whether the binary exists and is the right one.
    If there is hash difference, delete the actual binary.
    """
    if not binary_path.exists():
        logging.info("%s does not exist.", binary_path)
        return False
    existing_binary_hash = compute_file_sha256(str(binary_path))
    if existing_binary_hash == reference_hash:
        return True
    logging.warning(
        """\