You should always pull the plug part, not the cord. If you pull the cord the wires could become exposed and you could get an electric shock.