>They especially can't compel you to break the law (assuming you set up some kind of situation where it's fraud/perjury/whatever to lie).
They can most certainly hold you in contempt because you got your self in that mess.
>look at how email retention works.
Document retention policies are allowed because otherwise the civil court system would be prohibitively expensive (lawyers have to read all your email once you get sued basically). Once you get a court order that says to, you have to stop destroying email, etc, disabling your automated destruction systems.
The only reason to have canaries is to violate the terms of gag orders. Judges aren't sympathetic to that.