async def METHOD_NAME(config_db: ConfigEntityDb, configs: List[ConfigEntity]) -> None:
    await config_db.update_many(configs)
    remaining = list(configs)
    for _ in configs:
        sub = remaining.pop()
        await config_db.delete_value(sub)
        loaded = [sub async for sub in config_db.all()]
        assert remaining.sort() == loaded.sort()
    assert len([sub async for sub in config_db.all()]) == 0