> ## 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.

# PartyDestroyedReason

> Reasons an object might be destroyed.

Reasons an object might be destroyed.

## Syntax

```cpp theme={null}
enum class PartyDestroyedReason    
{  
    Requested = 0,  
    Disconnected = 1,  
    Kicked = 2,  
    DeviceLostAuthentication = 3,  
    CreationFailed = 4,  
}  
```

## Constants

| Constant | Description |
| - | - |
| Requested | The invitation, endpoint, device, network, or chat control is being destroyed gracefully by request. |
| Disconnected | The invitation, endpoint, device, network, or chat control is being destroyed because connectivity to the transparent cloud relay server was lost. |
| Kicked | The device or user that the invitation, endpoint, or chat control depended upon was kicked. |
| DeviceLostAuthentication | No local users on the local device were authenticated on the network, so the local device lost visibility to the remotely managed invitation, endpoint, device, or chat control.  Even though the local object referring to the remotely managed object has been destroyed, the remotely managed object may still exist in the network. |
| CreationFailed | The invitation or endpoint creation failed asynchronously, so the local object has been destroyed. |

## Requirements

**Header:** Party.h

## See also

[Party members](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/party_members.md)


## Related topics

- [PartyInvitationDestroyedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partyinvitationdestroyedstatechange.md)
- [PartyEndpointDestroyedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partyendpointdestroyedstatechange.md)
- [PartyNetworkDestroyedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partynetworkdestroyedstatechange.md)
- [PartyChatControlDestroyedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partychatcontroldestroyedstatechange.md)
- [client_network_destroyed](https://docs.xbox.com/services/playfab/api-references/events/Networking/client-network-destroyed.md)
