Fully gone objects without traces can and should be deleted from OSM.

If sole remaining trace is "the area can then be used again for railway purposes" and documentation in old maps then switches are ineligible for being mapped in OSM, also when prefixes are used.

OSM is for mapping current state.