A lawsuit brought by Chelsea Manning over the conditions of her confinement has been dismissed. (Tim Travers Hawkins/Courtesy of Chelsea Manning/AP)

A lawsuit brought by Private Chelsea Manning over the conditions of her confinement has been dismissed.

Ms Manning, the Army soldier who was sentenced to 35 years in a military prison for giving classified materials to WikiLeaks, was released May 17 from lock-up at Kansas' Fort Leavenworth after President Barack Obama commuted her sentence before leaving office.

One of her lawyers, Chase Strangio, wrote on Twitter that the case was dismissed because she is free.

Mr Strangio wrote: "She fought hard & we all benefited."

Ms Manning sued in federal court in the District of Columbia in 2014, asking a judge to order the Defence Department to provide hormone therapy and other treatment for her gender identity condition.

The Army ultimately allowed her to receive medical treatment for her gender dysphoria.