You can use the consoleLib.clearWindow() system function to remove all displayed material from the specified window. This includes erasing the constant information displayed in the current form. If the window has a border, the border is not erased. The function does not affect the ordering of the window stack or affect any windows that are above it in the window stack.
consoleLib.clearWindow(window Window in)
The following example shows the consoleLib.clearWindow() function:
consoleLib.clearWindow(window1);