Exactly, they even had the authority to do an expedited removal which would bar her from the US for 5 years. This would have spared her the detention while still having a deterrence effect. The detention is just pure cruelty and a waste of taxpayer dollars. While also adding to the immigration courts backlog.