> So when we deleted more than 1 device, it's always returning the same unusedX, > as $config is not yet updated. > Is it clear for you ? OK, got it. But maybe the code gets much simpler when we do single updates? - Dietmar