(CNN) — President Donald Trump has formally pardoned former Honduran President Juan Orlando Hernández , according to his attorney Renato Stabile.

Trump had announced his intention of granting a “full and complete pardon” to Hernández last week in a move that erases a major US drug-trafficking conviction for a onetime US ally.

Hernández has been released from prison, according to his attorney. A US Bureau of Prisons database also shows that the former Honduran president was released from a prison in West Virginia.

“On behalf of President Hernandez and his family I would like to thank President Trump for correcting this injustice. President Hernandez is glad this ordeal is over and is looking forward to regaining his life after almost 4 years in prison,” Stabile added in a statement.

See Full Page