I don't think there's any country in the world that doesn't reserve the right to deny entry to non-citizens for any reason they choose.
Perhaps I was unclear, I was asking if they can confiscate your stuff and send you back without it.
I'd think any such confiscation would be for a finite time only, but "finite" possibly encompassing a good portion of the useful life of an electronic device.
The US can confiscate your kids and send you back without them. I doubt they'd draw the line at confiscating a phone.