Did you get several blinks when pressing it shortly ? That would indicate it’s connected to Homey.
You can repair it without removing. Go to particular device - Settings → Maintenance → Try to repair
But that shall be not required after just removing / replacing battery.
You can use script before you delete the old device - [HOW-TO][Pro][Cloud] - Tool to FIX (advanced) flows after removing and re-adding devices