in reply to RegEx Question!
Don't think of it as "deleting". Rather, matching only what you want. Perhaps writing the matches to a new file; and perhaps then overwriting the original file.
perl -lne 'print unless /dontwant/' log > log.new [download]