It's called loss of confidence in his ability to command. It's not a legal determination. It is a judgment call by his superiors that he doesn't have what takes to exercise the responsibilities and commensurate authorities of command at sea. It's a tradition as old as going down to the sea in ships.
He absolutely doesnt have what it takes to command a war ship!! PERIOD!!!