When an EV starts charging the cable is locked in place to the vehicle's charging port, which prevents random people from unplugging it. Once charging is complete, the owner of the car can unlock the cable and be on their way. The lock is normally controlled from within the vehicle. Similarly, the other end of the cable is also locked into the charge point, which can usually be unlocked by the person who started the charge; or the owners of the charge point.