SAN FRANCISCO — Uber has fired 20 employees over harassment, discrimination and inappropriate behavior, as the ride-hailing company tries to contain the fallout from a series of toxic revelations about its workplace.

Uber disclosed the terminations on Tuesday at a staff meeting at its San Francisco headquarters, according to an employee who attended the event but was not authorized to speak publicly about the matter. The firings, which occurred in the last few months, stem from an internal investigation into Uber’s workplace, the employee said. The company did not name the people who were fired, but some were senior executives, the employee said.

The firings were aimed at tackling what many at Uber say are deep-seated management and cultural issues, which have made the company a cautionary tale for what can go wrong with Silicon Valley’s often freewheeling corporate culture. Uber has been a lightning rod because of its aggressive chief executive, Travis Kalanick, who has flouted rules and regulations to turn the company into a nearly $70 billion behemoth. Uber’s difficulties have revived questions about how the tech industry treats women and employees in general — and whether start-ups can recover from such stumbles.

“You only terminate 20 people after you’ve determined after an investigation that there is something very, very wrong at the company,” said Deborah Weinstein, the president of the Weinstein Firm, which deals with employment and workplace law issues. “Most places don’t have this level of things going wrong.”