Did America deport immigrants in 1939-1940?

Not upon arrival but did they find Illegal immigrants and deport them?

Sure. Illegal immigrants get deported all the time. What makes you think 1939-1940 would be special?