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

# PartyRemoveLocalUserCompletedStateChange

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

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

## Syntax

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

### Members

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

Indicates that the remove 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).

**`network`**   [PartyNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/partynetwork)\*

The network used in the call associated with this state change.

**`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

All PartyEndpoints and PartyChatControls depending upon this user will have been destroyed with reason [PartyDestroyedReason::UserRemoved](/services/playfab/multiplayer/networking/reference/enums/partydestroyedreason) before this state change is generated. If the user referenced by this state change was the last authenticated user in the network, then all remaining PartyEndpoints on this device, which at this point inherently consists of only endpoints associated with the last user or no user, will also have been destroyed before this state change is generated. An associated [PartyLocalUserRemovedStateChange](/services/playfab/multiplayer/networking/reference/structs/partylocaluserremovedstatechange) will have been generated before this state change is generated.

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)\
[PartyChatControlDestroyedStateChange](/services/playfab/multiplayer/networking/reference/structs/partychatcontroldestroyedstatechange)\
[PartyChatControlLeftNetworkStateChange](/services/playfab/multiplayer/networking/reference/structs/partychatcontrolleftnetworkstatechange)\
[PartyEndpointDestroyedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyendpointdestroyedstatechange)\
[PartyNetwork::RemoveLocalUser](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_removelocaluser)


## Related topics

- [PartyNetwork::RemoveLocalUser](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_removelocaluser.md)
- [PartyStateChangeType](/services/playfab/multiplayer/networking/reference/enums/partystatechangetype.md)
- [Party C/C++ API overview](/services/playfab/multiplayer/networking/reference/party_members.md)
- [PartyDestroyLocalUserCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partydestroylocalusercompletedstatechange.md)
- [PartyAuthenticateLocalUserCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyauthenticatelocalusercompletedstatechange.md)
