> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.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.<br /><br /> 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](/services/playfab/multiplayer/networking/reference/party_members)


## Related topics

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