While there is certainly more to say on the topic, you should take a look at u/hannahstohelit ’s excellent answer to a question about General Grant’s order to expel all Jews from his military district.