SAN FRANCISCO — Uber is in advanced discussions to sell its food-delivery business in India, according to two people with knowledge of the plans, as the company moves to stem its losses.

The ride-hailing company is nearing a deal to sell its Uber Eats service in India to Zomato, an Indian food-delivery service, said the people, who spoke on condition of anonymity because they were not authorized to do so publicly. The sale could be announced as early as this week, they said.

A spokesman for Uber declined to comment. The talks were earlier reported by TechCrunch, which said a deal would value the India business of Uber Eats at $400 million.

Dara Khosrowshahi, Uber’s chief executive, has been trying to pare back money-losing businesses to prove to investors that the company can turn a profit. Investors have agitated both in public and behind the scenes for Uber to clean up its balance sheet since it went public earlier this year.