Disruption between Exeter St Davids and Okehampton is expected to last until the end of Wednesday.
Great Western Railway says 500 litres of diesel spilled on to the track at Okehampton.