You could potentially keep the old UUID by using the config generate
CLI command (balena CLI Documentation - Balena Documentation) where you can specify the old UUID, generate a config.json
file, then use os configure
(balena CLI Documentation - Balena Documentation) to create an image to re-flash the device which should then associate with the original UUID. I have not tested this to confirm, but it has apparently worked in the past: Assign re-flashed device to existing UUID/name? - #20 by adamshapiro0