An angry federal judge demanded that a Los Angeles lawyer resign from the legal profession after his profanity-laced emails got national attention.

“You just trashed your profession,” U.S. District Judge Otis Wright II of the Central District of California told Christopher Hook at a hearing Monday. At issue were about 100 emails filled with profane and discriminatory remarks that Hook wrote to opposing counsel, telling them, among other things, to “eat a bowl of dicks” and “pay up fuckface.”