> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RemoveEntityFromSession SignalR server method

> RemoveEntityFromSession SignalR server method for PlayFab real-time messages, detaching an entity previously joined to a shared subscription session.

> [!NOTE]
>
> The REST and SignalR APIs documented here are more complex than the client SDKs. Consider using the [Lobby C++ SDK](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md) or [Matchmaking C++ SDK](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md) instead, unless those SDKs don't meet your needs.

Remove an additional entity that was added to the session with
[AddEntityToSession](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/server-methods/add-entity-to-session.md).

```text theme={null}
SharedSessionResponse RemoveEntityFromSession(SharedSessionRequest request)
```

> [!TIP]
>
> This is a SignalR server method. See [documentation on calling server methods](https://learn.microsoft.com/en-us/aspnet/core/signalr/dotnet-client#call-hub-methods-from-client) from a SignalR client.

## Parameters

[**`SharedSessionRequest`**](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/shared-session-request)

## Return value

[**`SharedSessionResponse`**](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/shared-session-response)

## See also

* Server method [AddEntityToSession](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/server-methods/add-entity-to-session.md)
* [Real-time messages SignalR Hub](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/signalr-hub.md)
* [Real-time messages for Lobby and Matchmaking APIs](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/overview.md)


## Related topics

- [AddEntityToSession SignalR server method](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/server-methods/add-entity-to-session.md)
- [EndSession SignalR server method](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/server-methods/end-session.md)
- [StartOrRecoverSession SignalR server method](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/server-methods/start-or-recover-session.md)
- [Real-time messages SignalR Hub](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/signalr-hub.md)
- [SharedSessionResponse real-time messages type](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/types/shared-session-response.md)
