A 51-year-old man who said he was not chosen to compete on Donald Trump’s “The Apprentice” because he was too old has settled a lawsuit against the real estate mogul.

A federal judge of the U.S. District Court for the District of Massachusetts dismissed the age discrimination lawsuit Monday at the request of R. Joseph Hewett, who was 49 when he was turned down by the NBC reality show in July 2005.