I am trying to remove a block of lines from a text file whenever the file changes. The file has start and end tags and I'd like to remove both tags and everything in between. For example, the start and end tags "TrashTag" below and the three lines should be removed if they exist in the file.
< TrashTag >
this goes
remove this
and this