# session_remove_ref

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L169
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-session_remove_ref/

```c
void session_remove_ref(struct session *s, const char *from)
```

## Parameters

- `s` (`struct session *`)
- `from` (`const char *`)

## Called by

- [`cmd_run_shell_free`](/en/tmux/latest/reference/c-function-cmd-run-shell-c-cmd_run_shell_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-run-shell.c#L303)
- [`notify_callback`](/en/tmux/latest/reference/c-function-notify-c-notify_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L163)
- [`session_destroy`](/en/tmux/latest/reference/c-function-session_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L228)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L172)

## Other function references

- [`session_free`](/en/tmux/latest/reference/c-function-session-c-session_free/) (function)

## Referenced declarations

- [`session.name`](/en/tmux/latest/reference/c-struct-session-name/) (attribute)
- [`session.references`](/en/tmux/latest/reference/c-struct-session-references/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
