O.J. Simpson can put his beef with The Cosmopolitan of Las Vegas in the rearview ... because we've learned he's settled his defamation lawsuit with the hotel.
According to new legal docs, obtained by TMZ, The Juice and the Cosmo agreed to dismiss the lawsuit with prejudice, and the judge signed off. Usually, that points to some type of settlement, though neither side is talking details.
O.J.'s lawyer, Malcolm LaVergne, tells TMZ ... "The Simpson/Cosmopolitan matter has been resolved."
As we reported .