| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| Events | NO | NO | NO | All |
This command queues a "close window" event for the specified window instance as if the user had selected the close option (system menu under Windows and Linux, or close box under macOS).
The specified window instance is closed, and an evClose event is produced. If the specified window instance does not exist, the command has no effect. If you omit the window instance name, the top window instance at the time of execution will be closed, and an evClose event is generated.
Open window instancewMyWindow/wInst1
Open window instancewMyWindow/wInst2Queue close## close wInst2, the top instance