A Delta Air Lines flight and an American Airlines flight averted a collision at the New York City airport Friday night.