How to close XY view via script command?



It is very hepful to shut down all view wondows when the GUI is slowing down for the large number of array objects in the model.
Is there any possible way to close XY / YZ / XZ / perspective views using script command?


I am not aware of a way to change the window layout (e.g., the views) using script commands. Indeed, the software can remember your preference with the window layout. It means that the views will not appear again unless you turn it on again, even if you restart the software.

If you would like to restore the default layout, View->Set default layout->Default

Just FYI, there are more tips to speed up the GUI How to speed-up GUI for large structures?