Postmates, the food-delivery start-up that competes with Uber, DoorDash and GrubHub, has laid off dozens of employees and closed its office in Mexico City, CNBC has learned.

The company, which had planned to join the ranks of hot consumer IPOs this year, has been forced to reckon with a rapid change in the capital markets following the struggles of Uber and Lyft and near collapse of WeWork. Postmates began the layoffs this week, according to people familiar with the matter, who asked not to be named because they weren't authorized to speak on behalf of the company.

In a statement to CNBC, a company spokesperson confirmed the closure of the Mexico City office and said employees there were informed of the move earlier on Tuesday. The company acknowledged that there had been other job cuts without saying how many. Sources told CNBC the number was at least several dozen and included people in the San Francisco headquarters as well as in Los Angeles, Nashville, Tennessee, and other offices.

"We made the difficult decision to end operations in Mexico City as we focus on our continued growth in the U.S.," a Postmates representative said in an email. "We continually review our business to ensure that staffing is aligned with current business needs and have made small adjustments as a result."