Customization > Automation Interface > Functions > For User Interface > Function for Panes > Functions for a Text Output Pane > RemoveOutputPane function (automation interface)
  
RemoveOutputPane function (automation interface)
Syntax:
Studio.RemoveOutputPane "<pane name>”
Removes from Modeler a pane that has been created through the AddOutputPane function.
For example, this script removes a pane named My New Pane.