As @csteele said, you have to do a general exclude of each zwave device to the new hub, but signals have to be able to "reach" with a non existent mesh - chicken and egg.
Some devices also have a "full reset" that will wipe out any old hub information.
You'll need to look up the manual for each device to find the button pressing/mouth holding sequence to get the device into a reset or exclude sequence as needed. Model numbers matter, so you may need to remove faceplates to get specifics. Take photos for later reference. I often print out the configuration (inclusion/exclusion) processes for later reference.
Any plug in device (portable) would be the best to start with vs hardwired, as you can bring those devices closer to the hub. Otherwise start with the closest device to the hub. The C7 isn't known as having the best Zwave antenna, so sometimes this can be challenging.
A good reference video:
Zigbee devices mostly just need to be paired to the hub. No exclude process exists. Some devices may have a reset procedure as well, but all mine reset as part of the pairing.