If you say that something wipes the smile off someone's face, you mean that it suddenly spoils their enjoyment or removes an advantage that they had and that you are pleased about it. [informal]
They've been laughing at their victim's expense, but the judge will wipe the smile off their faces.