delete-window -- Request that WIN remove itself from the display.
(delete-window #&optional win)
Request that win remove itself from the display.
This is the friendly way of closing a window, but it will not work if
the application does not cooperate. win defaults to the window context
in the usual way if not specified.