/clear

The /clear command deletes all text from the chat window up to the point where you used the command, so that you no longer see it.

Usage /clear