delete-other-frames

delete-other-frames is an interactive compiled Lisp function in `frame.el'.

It is bound to C-x 5 1.

(delete-other-frames &optional FRAME)

Delete all frames on the current terminal, except FRAME.
If FRAME uses another frame's minibuffer, the minibuffer frame is
left untouched. FRAME nil or omitted means use the selected frame.