How are you supposed to remove the speedometer cable

The large nut should come off and the cable should slide out of the transmission.

Alternatly... Removing the small bolt above it will allow you to remove the carrier that gear is attached to with the cable still attached.

Might use a tubbing wrench if the big nut is super tight