Replace Edge Device

We had an Edge device go down. I restored a backup and matched everything to the old system (Gateway Name, etc).

What is the best practice to add the replacement to the system? We have historical data that needs to be maintained. We want to make sure to not add a new device to the database. Do I remove the gateway Network Connection of the old Gateway first? Then add in the new one? Or will the same named Gateway replace the old if we do it as is and leave the existing?

I want to make sure I do this right. Thanks!

Connected the new device with the old name on it. Waiting to here how to approach this. I do not want to add a new record in the database. Was told this should replace the old Edge device. Should I approve (will it overwrite) or should I remove the existing then approve the replacement?

Green is what is there now (dead device).
Blue is the device that needs to replace the old.

I typically remove the old device (connection & certificate) before approving the new, though I’m not certain if the order matters.