delete-buffer name| Keys | Menu | |
| X | Control+X Control+K or Control+F6 | View/Buffers/Delete Buffer |
Deletes the buffer with the given name. If the buffer has been modified since it was saved to its associated file, a warning is issued and confirmation is required before the buffer is deleted. If the deleted buffer was displayed in a window, the window is switched to display the most recently modified buffer not currently displayed in any window.
The dialog box associated with the command is initialized with a list of the names of all buffers in order of their most recent access. Double-clicking Select on one of the buffer names in the list invokes the command on that name.