WASHINGTON (Reuters) - Former U.S. Army intelligence analyst Chelsea Manning, who was being detained for refusing to testify before a grand jury, was released on Thursday and immediately summoned to appear before a new grand jury next week, her lawyers said.

FILE PHOTO: Former U.S. Army intelligence analyst Chelsea Manning speaks to reporters outside the U.S. federal courthouse shortly before appearing before a federal judge and being taken into custody as he held her in contempt of court for refusing to testify before a federal grand jury in Alexandria, Virginia, U.S. March 8, 2019. REUTERS/Ford Fischer/News2Share/File Photo

Manning was released after the term expired for the previous grand jury in Virginia that was seeking her testimony in connection with what is believed to be the government’s long-running investigation into WikiLeaks and its founder Julian Assange.

She was simultaneously subpoenaed to appear before a different grand jury on May 16, meaning she could be found in contempt again for refusing to testify and returned to jail, her lawyers said in a statement.

Manning had appeared before the grand jury in early March but declined to answer questions.

She was jailed for 62 days for contempt of court. A U.S. appeals court denied her request to be released on bail and upheld the lower court’s decision to hold her in civil contempt for refusing to testify.

“Chelsea will continue to refuse to answer questions, and will use every available legal defense to prove to District Judge (Anthony) Trenga that she has just cause for her refusal to give testimony,” the statement said.

It is unclear exactly why federal prosecutors want Manning to testify, although her representatives say the questions she was asked concern the release of information she disclosed to the public in 2010 through WikiLeaks.

Manning was convicted by court-martial in 2013 of espionage and other offenses for furnishing more than 700,000 documents, videos, diplomatic cables and battlefield accounts to WikiLeaks while she was an intelligence analyst in Iraq.

Former U.S. President Barack Obama, in his final days in office, commuted the final 28 years of Manning’s 35-year sentence.

After nearly seven years of giving Assange refuge in its embassy in London, Ecuador on April 11 ended its protection and he was arrested by British police.

The United States is seeking his extradition to face charges of conspiracy to commit computer intrusion. Assange plans to fight the U.S. extradition request.

WikiLeaks published a classified U.S. military video showing a 2007 attack by Apache helicopters in Baghdad that killed a dozen people, including two Reuters news staff.

The U.S. government said Assange tried to help Manning gain access to a government computer. It is not clear if the alleged collaboration between Manning and Assange led to a successful intrusion into any U.S. government computer.