You can clear the contents of MaxL Script Editor and MDX Script Editor without closing the editor.
To clear the MaxL Script Editor or MDX Script Editor window, in the script area, right-click and select Clear.
To clear only the Results pane, in the script area, right-click and select Clear results.