deleting the line that was added at the end of the file