With respect to the phone, I'd say one has the right to delete everything on one's phone at any time. There is no evidence that the person in question was "destroying evidence" because there was no evidence - or suspicion, or charges, or anything substantive.
I think the authorities just got ticked off by the duress password, and they're flinging mud.