Immigrant advocates sued the Trump administration Tuesday for ending a free hotline that allowed detained immigrants to report concerns about custody conditions after it was featured on the show “Orange Is the New Black."

The nonprofit group Freedom for Immigrants, which has run the hotline since 2013 with a free phone line provided by U.S. Immigration and Customs Enforcement, sued in federal court in Los Angeles.

The lawsuit alleged that the administration yanked the hotline in August after it was featured on the Netflix show, which drew attention to the group’s criticism of detention conditions for immigrants.

File - In this June 30, 2018 file photo, people rally at the Families Belong Together - Freedom for Immigrants March in downtown Los Angeles. Immigrant advocates sued the Trump administration Tuesday, Dec. 10, 2019 for ending a free hotline that allowed detained immigrants to report concerns about custody conditions after it was featured on the show "Orange Is the New Black." The nonprofit group Freedom for Immigrants, which has run the hotline since 2013 with a free phone line provided by U.S. Immigration and Customs Enforcement, sued in federal court in Los Angeles. (AP PhotoDamian Dovarganes, File)

File - In this June 30, 2018 file photo, people rally at the Families Belong Together - Freedom for Immigrants March in downtown Los Angeles. Immigrant advocates sued the Trump administration Tuesday, Dec. 10, 2019 for ending a free hotline that allowed detained immigrants to report concerns about custody conditions after it was featured on the show "Orange Is the New Black." The nonprofit group Freedom for Immigrants, which has run the hotline since 2013 with a free phone line provided by U.S. Immigration and Customs Enforcement, sued in federal court in Los Angeles. (AP PhotoDamian Dovarganes, File)

“They cannot shut down this hotline in retaliation for the fact they don’t like what Freedom for Immigrants is saying,” said Moez Kaba, a partner at Hueston Hennigan, which is representing the group. “And they can’t shut down the hotline because they want to prevent Freedom for Immigrants from saying it.”

Immigration and Customs Enforcement declined to comment on the lawsuit but said the hotline was removed last year from a list of pro bono legal service providers that immigrants can call for free.

At the time, the agency notified the group that it had been misusing the hotline, said Bryan Cox, an ICE spokesman.

The line was not monitored or recorded so immigrants could find and speak with lawyers, but the group was using it for three-way calling to connect detainees to family, Cox said.

The agency had provided the hotline after a request from the nonprofit and a group of volunteers in Florida who had visited detained immigrants.

Immigrants in detention centers were then allowed to call for free, enabling the group — which also runs visitation programs at facilities across the country — to monitor custody conditions and help reconnect detainees with loved ones separated at the border, the lawsuit said.

It was also helpful for immigrants to remain in contact with hotline operators as the immigrants were transferred across multiple facilities, especially if they didn’t have family or friends nearby, the suit said.

The hotline received between 600 and 14,500 calls per month, according to the lawsuit. It was limited to use at detention facilities in Florida in 2018 and was shut down entirely in August 2019, the group said.