Complex sentence: The change to multiple unit operation was completed by June 1903 and all but two of the locomotives were scrapped, 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. Two were retained for shunting use in the depot.