It won't work if I understand you correctly. You can't remove components because they are part of the mesh except for the wheels. If yo remove those, then the loco will look funny.
You can turn the locomotives into static items by removing various containers within the config file and changing a tag to turn the asset into a static scenery item. Many of us have done that to make stuff park trains for the vandals to break.