There is a more nuanced argument against deportation as a policy. First of all it causes migrants to destroy their documentation and to be less coöperative with the immigration process. Second, some migrant countries refuse repatriation, which is currently an unsolved problem. Finally there's something to be said for immigrants to be registered regardless of status, rather than incentivising them to avoid authorities.
Now some of these problems could be solved, but there's a legitimate argument that the policy causes more problems than it solves.
Refusing repatriation of your own people is a hostile act something a bit short of a declaration of war, in my opinion. Which is why I assume that origin countries are cooperating with deportations from the USA, but not from Europe. Because they know there can be hell to pay if they outrage the Americans.