I don't agree with all this and this increasingly fascist regime but... this was the most predictable outcome. Consider these two scenarios. 1. You factory reset your phone before entering the US and give it to CBP blank. There's nothing to find; 2. You have a self-destruct PIN like this guy did and give it CBP so it destroys the phone's contents. Tech people will say that these two things are functionally the same.…
A court has not yet determined whether the use of the duress PIN/password was legal. There's definitely no consensus among legal experts of it being illegal as you're portraying it. The US has strong legal protections against self-incrimination and unreasonable searches despite erosion of how much people's rights are respected. A factory reset done in anticipation of a search is not as different from using a duress f…
If you're the subject of a lawful search and you destroy evidence rather than handing it over, that's spoliation. It has legal consequences. Courts are allowed to assume that whatever was destroyed was detrimental to you or your case. You can be charged with it as well. That's basically what happened here.
Consider this example: many companies have an email retention policy where emails will be automatically deleted after a period. I've heard of cases where this has been as little as 14 days. Typically though it's 1-5 years. One of the reasons companies do this is so discovery can't go and dredge up something really old in a lawsuit.
If this is a company policy then that's actually fine (ignoring any regulations or legislation tabout required retention).
Once you get subpoenaed you may get a hold on your email. The company is then required to retain it reagardless of this policy. If you then delete an email, that too is spoliation.
Do you see the difference? CBP can search your device. As soon as they request it, deleting the contents, regardless of what it contains is a crime. Wiping your phone before every border crossing as standard practice is not.