Walmart Inc. is cutting hundreds of corporate roles in a restructuring effort, according to people familiar with the matter, a week after the retail giant warned of falling profits.

The retailer began notifying employees in its Bentonville, Ark., headquarters and other corporate offices of the restructuring, which affects various departments including merchandising, global technology and real-estate teams, the people said. Around 200 jobs in total are being cut, said one of these people.

A Walmart spokeswoman confirmed that there were roles being eliminated as the company updated its structure, but said that the company was also investing in other areas and creating some new roles.

Last week, Walmart warned that its profit would decline in the current quarter and fiscal year because it was having to mark down apparel and other merchandise that has piled up in its stores. The retailer said higher prices for food and fuel were causing U.S. shoppers to pull back on other categories that are more profitable for it.

Walmart was one of several retailers that was caught off guard this spring as shoppers shifted their spending away from products that have been in high demand throughout much of the pandemic. In addition, some products arrived late due to supply-chain snarls, causing oversupply as shopper interest waned. Target Corp. in June issued a profit warning after it reported quarterly results that, like Walmart, showed a surge in inventory levels. Last week, Best Buy Co. cut its sales and profit goals, saying consumers had pulled back on electronics.

Walmart is the largest private employer in the U.S. and while much of its workers are hourly staff, it has thousands of people in corporate roles. Walmart employed 2.3 million worldwide, including 1.7 million in the U.S., as of Jan. 31.

While the overall U.S. job market has been strong, a handful of other major employers are pulling back on hiring or cutting some jobs. Ford Motor Co. is preparing to cut thousands of white-collar workers, while technology giants such as Microsoft Corp. and Facebook parent Meta Platforms Inc. have pulled back.

Investors will get another update on the health of the U.S. job market on Friday when the government releases data for July. Economists surveyed by The Wall Street Journal think Friday’s jobs report will show that they added more than 250,000 in July, compared with 372,000 in June.

This is a developing story and will be updated.

Write to Sarah Nassauer at sarah.nassauer@wsj.com