update and remove text files