Clearing codes

The wire from my speed sensor came unplugged.
I’m assuming that’s what caused the trouble codes that relate to the speed sensor.
I plugged it back in but the codes don’t go away.
Should they clear on their own when the problem is fixed or do I need to clear them?
Do I need the digital wrench to clear them or can I do it without?
If so, how?
2015 900 trail
Thanks,
Dan