I wonder though, if you had that set up and the cops ask you for the code to unlock and you told them the code to wipe and they end up wiping the phone. Would they be able to charge you with evidence tampering?
"Sorry, my distress pin is 1 digit off of my unlock pin, you probably fat fingered it by mistake. I guess we'll never know. You really need to be more careful."
I’d expect so. You have the right to remain silent. You do not have the right to destroy evidence. How is wiping your phone any different from running around your house flushing things?