def remove_left_side_if_all_1D(new_views):
    """ If the view config has no 2D files, then remove the left side from the view config.

    Args:
        new_views(list): The views that will make the new HiGlass view config. May be modified.

    Returns:
        True if the left side tracks were removed, False otherwise.
    """

    # Search all views' central contents for any 2D files.
    for view in new_views:
        for center_track in view["tracks"]["center"]:
            if "contents" not in center_track:
                continue

            # If 2D files are found, we shouldn't remove any tracks.
            if any([ t for t in center_track["contents"] if t["type"] in ("heatmap", "2d-chromosome-grid")]):
                return False

    # Remove the left side from each file in the view config.
    for view in new_views:
        view["tracks"]["left"] = []
    return True