Speedometer delete

Can I simply remove the cable from the trans without concerns about leaking? Is it necessary to cap the adapter?
I would take out the gear and find a cap for it. (AC systems might have a cap that would fit?)

OR take out the gear and drill and tap the hole for a plug