Complex sentence: The change to multiple unit operation was completed by June 1903 and the most of the locomotives were scrapped, leaving two which were retained for shunting use in the depot.
Split into simpler sentences: The change to multiple unit operation was completed by June 1903 and all but two of the locomotives were scrapped. Those two were retained for shunting use in the depot.