Delete Strings that are present in another file

HI,

if a String is present in file1.txt, i want to delete that String from file2.txt.

How can i do this??

I am sure that the file1.txt is a subset of file2.txt.

Do you mean remove lines common to both files?

grep -v -f file1.txt file2.txt > newfile

Otherwise please post example input files and a few lines of expected output.

No, Thanks. This was what i wanted.