> courts never stray “outside the case”
They do, regularly, otherwise the entire concept of “obiter dictum” wouldn’t exist.
> ianal, but i think when a court finds you have deleted evidence, that the information deleted is assumed to be evidence against you.
The court can (rough summary of Rule 37 of the Federal Rules of Civil Procedure)
(1) Itself (in a bench trial), or by direction to the jury (in a jury trial), allow that to serve as the basis for adverse inference as you describe, or
(2) Simply direct a finding of fact against the party who does that (bypassing the jury, in a jury trial), or
(3) Strike any claims of the party at fault that the discovery touches on from the case entirely, or
(4) Dismiss the case (if the party is the plaintiff) or render summary judgement against the party (in any case),
(5) Treat the failure as a contempt of court and sanction it that, or
(6) any combination of those (and a few other things) that it thinks is appropriate.