Function: delete-frame
delete-frame is an interactive function defined in frame.c.
Signature
(delete-frame &optional FRAME FORCE)
Documentation
Delete FRAME, permanently eliminating it from use.
FRAME must be a live frame and defaults to the selected one.
A frame may not be deleted if its minibuffer serves as surrogate minibuffer for another frame. Normally, you may not delete a frame if all other frames are invisible, but if the second optional argument FORCE is non-nil, you may do so.
This function runs delete-frame-functions before actually
deleting the frame, unless the frame is a tooltip.
The functions are run with one argument, the frame to be deleted.
Probably introduced at or before Emacs version 19.29.
Key Bindings
Source Code
// Defined in /usr/src/emacs/src/frame.c
{
return delete_frame (frame, !NILP (force) ? Qt : Qnil);
}