delete text to file