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

# PartyDestroyLocalUserCompletedStateChange

> Information specific to the *DestroyLocalUserCompleted* type of state change.

Information specific to the *DestroyLocalUserCompleted* type of state change.

## Syntax

```cpp theme={null}
struct PartyDestroyLocalUserCompletedStateChange : PartyStateChange {  
    PartyStateChangeResult result;  
    PartyError errorDetail;  
    PartyLocalUser* localUser;  
    void* asyncIdentifier;  
}  
```

### Members

**`result`**   [PartyStateChangeResult](/services/playfab/multiplayer/networking/reference/enums/partystatechangeresult)

Indicates that the destroy local user operation Succeeded or provides the reason that it failed.

**`errorDetail`**   PartyError

A diagnostic value providing additional troubleshooting information regarding any potential error condition.

The human-readable form of this error detail can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

**`localUser`**   [PartyLocalUser](/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/partylocaluser)\*

The local user provided to the call associated with this state change.

**`asyncIdentifier`**   void\*

The async identifier provided to the call associated with this state change.

## Remarks

This PartyLocalUser will be removed from all dependent networks prior to this state change. All dependent PartyEndpoint and PartyChatControl objects will be destroyed with reason [PartyDestroyedReason::UserRemoved](/services/playfab/multiplayer/networking/reference/enums/partydestroyedreason) prior to the PartyLocalUser being removed from its dependent networks. Once this state change is returned to [PartyManager::FinishProcessingStateChanges()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_finishprocessingstatechanges), the PartyLocalUser object memory will become invalid.

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)\
[PartyManager::DestroyLocalUser](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_destroylocaluser)


## Related topics

- [PartyManager::DestroyLocalUser](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_destroylocaluser.md)
- [PartyManager::GetLocalUsers](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getlocalusers.md)
- [PartyLocalUser::GetEntityId](/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/methods/partylocaluser_getentityid.md)
- [PartyManager::CreateLocalUser](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_createlocaluser.md)
- [PartyLocalUser::GetEntityType](/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/methods/partylocaluser_getentitytype.md)
