Page 1 of 2 If the intersection of your property with the rail line is with the one at/near bedrock, then unfortunately that will be the extent to which you will be able to dig.§0
§0
§0If it is another one higher up that I am unaware of, you are free to dig around it
Page 2 of 2 so long as such workarounds are still within your plot. In such a case, you are free to remove any blocks surrounding the rail so long as you do not disturb the rail itself.