How to reset Apple TV 2nd gen without a remote

I’m having a bit of a tech clear out and was faced with a second generation Apple TV that I didn’t have a remote for. I couldn’t get the Siri remote to work so was a bit stuck.

On looking at the back of the unit I realised that it had a mini USB port. I took it to my iMac, plugged in a usb cable and iTunes recognised it. It then gave me an option to factory reset.