delete-window-internal

delete-window-internal is a built-in function in `C source code'.

(delete-window-internal WINDOW)

Remove WINDOW from its frame.
WINDOW defaults to the selected window. Return nil.
Signal an error when WINDOW is the only window on its frame.