mouse-delete-window

mouse-delete-window is an interactive compiled Lisp function in `mouse.el'.

It is bound to <mode-line> <mouse-3>.

(mouse-delete-window CLICK)

Delete the window you click on.
Do nothing if the frame has just one window.
This command must be bound to a mouse click.