The American Civil Liberties Union and advocacy groups filed suit in Manhattan federal court Thursday to put the brakes on the Trump administration’s plan to have US Immigration and Customs Enforcement agents conduct a mass roundup of illegal aliens starting Sunday.

According to the suit, the ICE raids are intended to target thousands of illegals who are facing deportation proceedings because they missed an immigration court hearing.

But the filing argues that the administration’s system for providing notice for immigration court proceedings is in “chaos” — in thousands of cases, they say, people scheduled for such hearings have not been given notice at all, have been given the wrong times or dates to show up for court or have been told to show up on the weekend when the immigration courts are closed.

The thousands who received “in absentia” deportations include children who have no control over when they can appear in court, the ACLU allege.

The groups are asking for a court order to require that all immigrants facing an in absentia deportation get a hearing in front of an immigration judge before they are physically removed from the country.

“For the many families who came here as refugees fleeing violence, deportation is a death threat,” said Donna Lieberman, executive director of the New York Civil Liberties Union, in a news release. “We will fight to ensure no one faces this kind of peril without having their case considered in court.”

see also Feds plan to deport 1 million illegal immigrants: Trump official The Trump ​administration is ready to deport about a million...

The roughly 2,000 immigrants that ICE is looking to round up are primarily from El Salvador, Guatemala and Honduras and who have come to the United States since 2014 to flee escalating violence in those countries, the lawsuit states.

Trump had announced on June 17 that during the following week ICE would take “millions” of migrants into custody but the plan was called off.

President Trump took to Twitter to say that the delay was “at the request of the Democrats” but Acting Homeland Security Secretary Kevin McAleenan reportedly told ICE to call off the operation out of concern that undocumented parents could get split up from children who are American citizens.