desktop-kill

desktop-kill is a compiled Lisp function in `desktop.el'.

(desktop-kill)

If `desktop-save-mode' is non-nil, do what `desktop-save' says to do.
If the desktop should be saved and `desktop-dirname'
is nil, ask the user where to save the desktop.