How to read and delete lines from *.doc file (not docx)

This link seems like a good jumping off point. I’d go through this then search around for other methods. What you want is really common, so lots of resources. I’d also use Pathlib for my path.

If you want to delete from multiple files, you’ll need to loop through the files. I typically build a function that gets the Path() of the files I want to work with. Then I loop through those file paths performing my work.