Result window:
One should be able to remove (close) a result window from within a script.
One should be able to add or remove files from a result window.
Added a CloseResultWindow method to the Database class. 5.4.16.
You cannot update an existing result window with new files. I suggest you manage the files you want to put in the result window in your script using a Files collection and then update the result window when you have all files available. If you later need to change the contents of an existing result window, close the old window and create a new one with a new query result or set of files.
Thanks. Being able to close a result window lets me achieve the rest (adding deleting).