=IF(OR(AND(A4=A3,B4=B3),A4=A5,B4=B5),"X","")
In D4 and then copied down will populate the X's for you. If you're not bothered about the deletions being automated then filtering on X and delete will remove them.
Note however, this formula will put an X in all 4 of the rows, whereas your original data only had it in the duplicated row, your blurb however states you want to delete all 4 rows. If you dont, and you only want to delete the duplicated entry ie rows 7 and 10 then use:
=IF(AND(A4=A3,B4=B3),"X","")
Bookmarks