Using Notepad++, how do I remove all lines starting with # or ;?
In Notepad++, you can use the Mark tab in the Find dialogue to Bookmark all lines matching your query which can be regex or normal (wildcard).
Then use Search > Bookmark > Remove Bookmarked Lines.