def METHOD_NAME(conf_directory: str, conf_file: str):
    """
    Replaces all occurrences of lines with "VirtualHost" with an empty one.
    :param conf_directory: The directory where the Apache2 configuration files are.
    :param conf_file: The file to edit.
    """
    full_path = os.path.join(conf_directory, conf_file)
    backup_file(full_path)
    with open(full_path, "r") as http_config:
        http_lines = http_config.readlines()
        for i in range(0, len(http_lines)):
            if "VirtualHost" in http_lines[i]:
                http_lines[i] = ""
    with open (full_path, 'w') as http_config_update:
        http_config_update.writelines(http_lines)