The easiest way is to just delete the device from the device’s overview, and activate the inclusion mode of the device.
But even if that fails to reset the device, you can always reset the device from the developer tools, and remove a zwave device from there, that will reset the device to factory defaults, even if it is not included into homey.