Milwaukee: A federal judge in Los Angeles has dismissed a lawsuit brought by adult-film actress Stormy Daniels to end a hush-money agreement she had with US President Donald Trump.

Daniels, whose real name is Stephanie Clifford, filed a lawsuit in March 2018 to rescind a non-disclosure agreement that kept her from discussing her alleged 2006 sexual relationship with Trump in the final weeks before the 2016 US presidential election.

Trump has denied having an affair with Daniels.

Trump's former lawyer Michael Cohen has said the agreement, under which Daniels was paid $US130,000 ($185,000) was struck to help Trump capture the White House.