It did not work. This command deleted more lines than i was expecting. Can we check by two columns in file1.txt to be sure it deletes the correct lines? It has to be the exact match not the subset.
If it did not you expected then you have to think again "what was it saying in the forum rules on how to post?"
jayan_jay has been kind enough to show you a code THAT WORKS, I tested...
If it does not for you it is because of the lack of information you gave, I tested on a AIX 6.2 using ksh. Is the sample data enough to figure out all possible cases? What do we know of your OS and environment? Till now nothing...
I hope you see now why it is important to give the most information possible especially when extracting to sample data (from the little data sample you gave jayan's solution seems to work...), many of us aren't of English mother tongue and most of us peep along during work time and so use copy/paste to create test samples for figuring out how to help you, the more you are clear and give a good sampling the more chances you have to get the right answer...