Boeing lost $2.4 billion in the second quarter, and the company will slow production and cut more jobs as demand for commercial aircraft shrinks during the coronavirus pandemic.

The loss was far worse than Wall Street expected; so was the decline in revenue, which fell 25%.

“The reality is the pandemic’s impact on the aviation sector continues to be severe,” CEO David Calhoun said. He said airlines are delaying purchases, slowing down deliveries and deferring elective maintenance, “all of which affects our business and, ultimately, our bottom line.”

Calhoun said it will take around three years to return to 2019 passenger levels. On Tuesday, an airline industry trade group said air travel won’t recover to pre-pandemic levels until at least 2024, a year longer than its previous forecast. The International Air Transport Association cited the inability of the United States and developing countries to contain the coronavirus.

With interest from airlines in new planes fading, Boeing Co. said Wednesday it will slow its production of the 787 and 777 models and delay the introduction of a new big plane, the 777X, by a year until 2022. The company will study whether to close one of its two factories that make the 787; one is near Seattle, the other in South Carolina.

And Boeing will stop building the cargo-carrying version of its giant 747 in 2022, signaling the end of the line for the iconic jumbo jet.

The company pushed back the expected return of the troubled 737 Max, which has been grounded since March 2019 after two crashes that killed 346 people.

Chief Financial Officer Greg Smith said Boeing now expects the Federal Aviation Administration to allow the company to resume Max deliveries in the fourth quarter, one quarter later than Boeing’s most recent estimate.

Boeing said about 19,000 employees will leave this year, including 6,000 who left by June 30. The Chicago-based company had 161,100 workers at the start of the year.

Calhoun said the defense unit is hiring, and Boeing still expects a net workforce reduction of around 10%, or 16,000 people, by year-end.

So far this year, Boeing deliveries of new airliners are down 71%. Boeing recorded 59 orders, but also 382 cancellations, mostly for the troubled Max. Another 323 orders, also mostly for Max planes, were removed from Boeing’s backlog because of uncertainty about the deals going through.