Magic Mouse connected but unable to move cursor
I have an old iMac (probably about 2014?) that I would like to recycle but want to wipe the hard drive clean before I do. The wireless mouse and keyboard I have are connecting but the cursor doesn't move with the mouse and the only keyboard commands which are working are the volume and brightness keys. Any suggestions?
iMac 21.5″, macOS 10.13