I've done many like this, you want to keep the new environment as clean as possible on any removal, especially when the temps are up, nothing worse than stressed bees in a messy hive in the heat.
Some will surprise you with their survival tendancies some you will have to combine with another hive.
I would do a thorough check and clean things as best you can and give them some brood with fresh eggs from another colony to bolster them and give them a chance to requeen.
Keep a close eye on them if they seem weak watch out for waxmoth and shb.
I did one once where within just a few minutes I accidentally sqooshed the queen, I pinched her behind the first piece of sheetrock I removed, it was a real bummer, it was just bum luck.
Good luck with the hive.