if there is a *.txt file with the following entries:

hello
hi
all

how to delete the line "hi" so that the file will have the following pattern?

hello
all

thank you for helping