Launch Notepad++ and open the file where you need to delete the lines.
Press Ctrl + F or select Find from the menu, then Find...
In the search window, select the Replace tab.
Enter a regular expression to search for lines
In the Find what field, enter the following regular expression:
^unwanted_word.*\R
Here ^ denotes the beginning of a line, unwanted_word is the word the line starts with, .* means any characters up to the end of the line, and \R represents the end of the line character.
Leave the Replace with field empty
Ensure that the Regular expression option is selected.
If you want the search to be case sensitive, select the Match case option.
Click the Replace All button to delete all lines starting with the specified word.
Now you know how to delete lines starting with a specific word in Notepad++ using regular expressions.