In civil cases, once you know or have reasonable cause to suspect a court case is imminent, you're technically supposed to act to preserve evidence, and not doing so can lead to sanctions, even if the evidence was destroyed as part of routine policy.
I'm less clear on how evidence tampering is dealt with in criminal law.