This seems like a reasonable use of one's 4th amendment rights. Unless he was under court order, there's nothing unlawful about deleting data. Duress passwords like this should be the default.
Phil Lewis“This is thought to be the first known case in the United States where federal prosecutors have charged someone for the alleged destruction of data using a ‘duress’ password built into a phone’s software”