SAN FRANCISCO — Uber Technologies Inc. has fired Anthony Levandowski, the star engineer who once led its division in charge of developing autonomous vehicle technology. The move comes amid a contentious court battle with Waymo, Google’s driverless car unit, that centers on allegations that Levandowski stole valuable trade secrets when he previously worked there.

The firing also brings into front-and-center a fight over the Fifth Amendment. Levandowski has invoked the Fifth in refusing to answer questions about the files that Waymo says were taken. But the judge presiding over the case earlier this month put pressure on Uber to get Levandowski to turn over the materials regardless, and said that if he won’t, the company “has no excuse under the Fifth Amendment to pull any punches as to Levandowski.”