DeleteTrail for erlang file