$ cat text
abc
<!-- BOF CLEAN -->
... a bunch of stuff
<!-- EOF CLEAN -->
def
$ sed '/<!-- BOF CLEAN -->/,/<!-- EOF CLEAN -->/d' text
abc
def
I cannot explain it any better than Sed One-Liners Explained, Part III: Selective Deletion of Certain Lines and Special Applications.