message-kill-buffer-on-exit

message-kill-buffer-on-exit is a variable defined in `message.el'.
Its value is
nil


Documentation:
*Non-nil means that the message buffer will be killed after sending a message.

You can customize this variable.