Here's a Vim tip from zzapper.co.uk . . .
not line based (very powerfull)
:g/joe/,/fred/d
©2020 Casey Falk. All thoughts presented are my own and not my employer's.