window-deletable-p

window-deletable-p is a compiled Lisp function in `window.el'.

(window-deletable-p &optional WINDOW)

Return t if WINDOW can be safely deleted from its frame.
WINDOW must be a valid window and defaults to the selected one.
Return 'frame if deleting WINDOW should also delete its frame.