def kill_session(self, target_session=None):
        """Kill the tmux session with ``$ tmux kill-session``, return ``self``.

        :param: target_session: str. note this accepts ``fnmatch(3)``. 'asdf'
            will kill 'asdfasd'.

        :rtype: :class:`Server`

        """
        proc = self.cmd('kill-session', '-t%s' % target_session)

        if proc.stderr:
            raise exc.TmuxpException(proc.stderr)

        return self
dataset/ETHPy150Open tony/tmuxp/tmuxp/server.py/Server.kill_session/original