kill-buffer-and-window

kill-buffer-and-window is an interactive compiled Lisp function in `window.el'.

It is bound to C-x 4 0.

(kill-buffer-and-window)

Kill the current buffer and delete the selected window.