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

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.

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

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.