# server_destroy_session_group

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L387
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-server-fn-c-server_destroy_session_group/

```c
static void server_destroy_session_group(struct session *)
```

## Parameters

- `s` (`struct session *`)

## Called by

- [`server_kill_window`](/en/tmux/3.2a/reference/c-function-server_kill_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L208)
- [`server_unlink_window`](/en/tmux/3.2a/reference/c-function-server_unlink_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L302)

## Calls

- [`server_destroy_session`](/en/tmux/3.2a/reference/c-function-server_destroy_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L393)
- [`session_destroy`](/en/tmux/3.2a/reference/c-function-session_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L397)

## Other function references

- [`session_group_contains`](/en/tmux/3.2a/reference/c-function-session_group_contains/) (function)

## Referenced declarations

- [`session.gentry`](/en/tmux/3.2a/reference/c-struct-session-gentry/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`session_group.sessions`](/en/tmux/3.2a/reference/c-struct-session_group-sessions/) (attribute)
