You know those signs on the highway saying “watch out for falling rocks”?
Yeah, here they mean it. Note size of rock versus size of backhoe…. Not sure if a train could get by or not.
However, this seems to happen frequently enough that the rail company has a special train just for this:
Excavator plus dump truck all-in-one unit, just for clearing rail lines.