kill/delete the current session
sessions
// what it does
`kill-session` (run as `tmux kill-session` or from the tmux command prompt with `Ctrl + b :`) destroys the current session and terminates every window, pane, and process inside it. With no `-t`, it targets the session you're currently attached to. Use it to tear down a session you're done with rather than leaving it consuming resources.
// tmux command
: kill-session// gotcha
There is no confirmation prompt — the session and all its running processes die instantly. Because `detach-on-destroy` defaults to `on`, killing the session you're attached to detaches you to the shell rather than leaving you stranded; set it to `off` to be switched to another surviving session instead.