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

# XblSocialManagerRemoveLocalUser

> XblSocialManagerRemoveLocalUser

# XblSocialManagerRemoveLocalUser

Immediately removes a social graph for the specified local user.

## Syntax

```cpp theme={null}
HRESULT XblSocialManagerRemoveLocalUser(  
         XblUserHandle user  
)  
```

### Parameters

*user*   \_In\_\
Type: XblUserHandle

XBOX Live User to remove.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

When a user is removed, their social graph and user groups will be destroyed as well. There will be no future events associated with the user after they are removed. Call this API only if [XblSocialManagerAddLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser) was used to create a social graph for a local user.

## Requirements

**Header:** social\_manager\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[social\_manager\_c](/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerAddLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser.md)
- [XblSocialManagerGetLocalUserCount](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusercount.md)
- [Social Manager overview](/services/xbox-services/community/social-manager/live-social-manager-overview.md)
- [XblSocialManagerGetLocalUsers](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers.md)
- [XblAchievementsManagerRemoveLocalUser](/reference/live/xsapi-c/achievements_manager_c/functions/xblachievementsmanagerremovelocaluser.md)
