Notepad++ has a feature to remove lines within a text file that includes a particular character. To start the process, use Control + F to open the Find dialog box. Access the Mark tab. Enable the Bookmark line option. Enter the character to search for. Click on the Mark All button. This should select the line or lines within the main window.
Under Search –> Bookmark, use the option Remove Bookmarked Lines.