Anna Sorokin, the convicted scammer who once claimed to be a German heiress to finance a luxurious lifestyle in New York City, is being released from federal prison, her lawyer said Wednesday.

In a statement, Sorokin attorney Duncan Levin said they were “extremely gratified by the court’s decision today to release Anna Sorokin.”

“The judge rightfully recognized that Anna is not a danger to the community,” he said. “While there are still a few hurdles to jump through on her release conditions, Anna is thrilled to be getting out so she can focus on appealing her wrongful conviction.”

Sorokin, whose scheme inspired the Netflix original series “Inventing Anna,” was convicted in 2019 on charges of theft of services, grand larceny and attempted grand larceny.

Sorokin often used the alias Anna Delvey to defraud financial institutions and Manhattan’s elite into believing she had a fortune of $67 million overseas that could cover her lavish lifestyle, according to The Associated Press. She also falsely claimed her father was a wealthy diplomat or tycoon and she was the sole heir to his fortunate.  

The now 31-year-old served two years in prison and was released on parole in February 2021, according to the AP.

Because she had overstayed her visa, she was taken into the custody of U.S. Customs and Immigration Enforcement the following month, AP reported.

If she meets the conditions of her released, she will be freed from federal custody but still could face deportation to Germany, according to Bloomberg.