This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

President Donald Trump on Friday defended recent, large-scale raids by Immigration and Customs Enforcement officials and the way the agency dealt with children of the immigrants who were detained.

Asked Friday why there wasn’t a better plan in place to deal with the children after their parent’s arrest, Trump told reporters outside the White House south lawn, “You have to go in, you can’t let anybody know.”

“Otherwise when you get there, nobody will be there,” Trump said. “The big factor is to let people outside of the country that want to come in legally,” he continued, then praising Mexico’s efforts to deter migrants from illegally entering the US.

“I just hope to keep it up,” he added.

Authorities hailed Wednesday’s sweep at seven Mississippi food processing plants as a record-setting operation. At least 680 undocumented immigrants were detained. More than 300 of them had been released by Thursday, Bryan D. Cox, an ICE spokesman, said in a statement. US Attorney for the Southern District of Mississippi Mike Hurst told reporters that the raids are “believed to be the largest single-state immigration enforcement operation in our nation’s history.”

The raids led to a series of heart wrenching images and videos of family members — including young children whose parents were detained — reeling from the arrest of their relatives.

In Forest, Mississippi, strangers and neighbors volunteered to take children with nowhere to go after their parents were detained to a local gym for the night, according to CNN affiliate WJTV.

Trump said the raids served as a “very good deterrent” for undocumented immigrants.

“I want people to know that if they come into the United States illegally, they’re getting out,” Trump said Friday. “They’re going to be brought out. And this serves as a very good deterrent.”

“When people see what they saw (earlier this week), like they will be for a long time, they know that they’re not staying,” he added.