A South Korean court cancelled impeached President Yoon Suk Yeol's arrest warrant, paving the way for his release from jail after he was arrested in mid-January on insurrection charges over his brief imposition of martial law.
Yonhap News Agency reported the update on Friday.
A Seoul Central District Court spokesperson could not immediately be reached for comment.
"South Korea's rule of law is still alive," Yoon's legal counsel said, according to broadcaster YTN.
Yoon is expected to be released immediately and take part in his trial while out of detention, local media said.
Yoon's lawyers had argued the warrant issued on January 19 that has kept him in detention was invalid because the request filed by prosecutors was procedurally flawed.
He declared martial law on December 3 saying it was needed to root out "anti-state" elements but lifted the decree six hours later after parliament voted to reject it. He has said he never intended to fully impose emergency military rule.
Weeks later he was impeached by the opposition-led parliament on accusations he had violated his constitutional duty by declaring martial law.
Yoon faces a separate criminal trial and became the first sitting president to be arrested on criminal charges on January 15.

Family of alleged Bondi gunman unaware of 'radical mindset', say Indian police
Israeli forces kill Palestinian teen in West Bank, health ministry says
Trump sues BBC for defamation, seeks up to $10 billion in damages
FBI foils 'terror plot' targeting Los Angeles
Hong Kong court finds tycoon Jimmy Lai guilty in landmark security trial