Arbortext Command Language > Functions by Alphabetical Listing > window_destroy
  
window_destroy
window_destroy (window)
This function destroys the window identified by window, releasing all resources allocated. If a scratch document was allocated by window_create, that is, no document identifier was passed to window_create, then it will be freed also. If a destroyCallback is set on the window, it will be called before the window is actually destroyed. If you execute this function on the only remaining window, Arbortext Editor will exit.