E-commerce giant Amazon and business software maker Salesforce are the latest U.S. technology companies to announce major job cuts as they prune payrolls that rapidly expanded during the pandemic lockdown.

Amazon said Wednesday that it will be cutting about 18,000 positions. It’s the largest set of layoffs in the Seattle-based company’s history, although just a fraction of its 1.5 million global workforce.

“Amazon has weathered uncertain and difficult economies in the past, and we will continue to do so,” CEO Andy Jassy said in a note to employees that the company made public. “These changes will help us pursue our long-term opportunities with a stronger cost structure.”

He said the layoffs will mostly impact the company’s brick-and-mortar stores, which include Amazon Fresh and Amazon Go, and its PXT organizations, which handle human resources and other functions.

Salesforce cutting more than 7,300 jobs, closing some offices

In November, Jassy told staff that layoffs were coming due to the economic landscape and the company’s rapid hiring in the last several years. Wednesday’s announcement included earlier job cuts that had not been numbered. The company had also offered voluntary buyouts and has been cutting costs in other areas of its sprawling business.

Salesforce, meanwhile, said it is laying off about 8,000 employees, or 10% of its workforce.

US job openings remain high – more than 10.4M – despite Fed attempts to slow inflation