It depends on the intent. If you create the system explicitly to destroy evidence if the police are looking for it then yes. If, instead, you create a "safe" that as an anti-tamper measure destroys the contents, then no (BUT IANAL).
In the UK, that would qualify as destruction of evidence 9/10 times. Source: Looked into doing something similar to protect confidential information and sought legal advice first.