erc-kill-queries-on-quit

erc-kill-queries-on-quit is a variable defined in `erc.el'.
Its value is
nil


Documentation:
Kill all query (also channel) buffers of this server on QUIT.
See the variable `erc-kill-buffer-on-part' for details.

You can customize this variable.