747-400 Delta
A Delta Airlines Boeing 747-400 takes off from New York's JFK airport. Alberto Riva

Delta Air Lines issued an apology Thursday after they kicked off a family from an overbooked flight, threatening them with jail time. The incident happened after Delta agents told a couple traveling with their two children that their 2-year-old had to give up his seat to make room for another passenger.

"Delta's goal is to always work with customers in an attempt to find solutions to their travel issues. That did not happen in this case and we apologize," said the airline in a Thursday statement, adding that Delta had reached out to the couple to compensate them.

Read: United Airlines Dragging Passenger Off Plane Was Illegal, Says Lawyer

The April 23 incident occurred on a flight from Maui, Hawaii to Los Angeles. Brian Schear of Huntington Beach, California, told NBC News he and his wife, Brittany, arranged for their 2-year-old son to use their teenage son’s ticket. The couple, who were also traveling with a 1-year-old, had already boarded the flight with the purchased ticket when Delta officials asked them to hold the child and forfeit the seat to another passenger. At least one agent can be heard in the video threatening to jail the couple and place their children in foster care when they refused.

While the incident occurred late April, it went viral Wednesday after the couple posted the video on YouTube. By press time, it amassed more than 3 million views.

According to Schear, the couple was traveling with their teen son as well. They arranged for the teen to go home on a separate flight so their 2-year-old son could have a seat of his own and sleep through the overnight flight. Schear told NBC News the couple spoke to a ticket agent before boarding the plane, and the agent arranged for the family to sit together. However, after they boarded, airline agents told the family that the 2-year-old had to give up the seat for another passenger because the ticket was not in his name.

Schear told airline officials that because the flight was a red-eye, the only way the 2-year-old child would sleep was if he was in his car seat, which the Federal Aviation Administration encourages. “It’s a red-eye,” Shear can be heard saying in the video. “He won’t sleep unless he’s in his car seat. So, otherwise, he’d be sitting in my wife’s lap, crawling all over the place, and it’s not safe.”

In the video, an airline agent can be heard telling Shear, “This is a federal offense. You and your wife could be in jail and your kids will be in foster care.”

The couple wrote in the video's caption that after being forced to leave the plane, they had to pay for a hotel and buy new tickets to get home.