It needs to be done on a case-by-case basis, not a general group, e.g., Muslims from Iran, and even then it will be hard to deport a person unless they have other citizenship. A stateless person has a right to remain in the US. To leave a person stateless under the UN’s 1961 Convention sets out the very limited situations in which states can deprive a person of his or her nationality, even if this would leave them stateless. As a member of the UN, even though the US was not a signatory on either convention, the US must follow both the 1954 and 1961 Conventions on Statelessness, so this alone means that a person is not stateless unless they renounce their citizenship, but even then as a stateless person they can remain in the US. Getting back to terrorists, most unfortunately we can’t make them stateless and remove them from the US. But terrorists with dual or more citizenships can be returned to the country of their other citizenship. And homegrown terrorists can only be sent to prison.