You would have to open file into a variable (or a Textbox), delete the things that you want to delete and then rewrite the file again.