> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor.client/ks.reactor.client.ksdestroyreason.md).

# Enum ksDestroyReason

Namespace: [KS.Reactor.Client](/reactor/api-reference/ks.reactor.client.md)\
Assembly: KSUnity.dll

Reasons for entity destruction

```csharp
public enum ksDestroyReason
```

## Fields

`DISCONNECT = 4`

We disconnected from the room.

`IDLE_CONNECTION = 3`

The connection is idle.

`INVALID_PLAYER_SPAWN = 2`

The entity was spawned by the local player but the spawn request was denied by the server.

`SERVER_DESTROY = 0`

The server destroyed the entity.

`SYNC_GROUP_REMOVAL = 1`

The entity stopped syncing because the player does not belong to the entity's sync group.
