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

# PFSegmentsServerRemovePlayerTagAsync

> Remove a given tag from a player profile. The tag's namespace is automatically generated based on the source of the tag.

Remove a given tag from a player profile. The tag's namespace is automatically generated based on the source of the tag.

## Syntax

```cpp theme={null}
HRESULT PFSegmentsServerRemovePlayerTagAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFSegmentsRemovePlayerTagRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle for a title Entity obtained using PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFSegmentsRemovePlayerTagRequest\*](/services/playfab/api-references/c/pfsegmentstypes/structs/pfsegmentsremoveplayertagrequest)

Populated request object.

**`async`**   XAsyncBlock\*\
**Inout**

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Win32, Linux, and macOS. This API will trigger a player\_tag\_removed event and remove a tag with the given TagName and PlayFabID from the corresponding player profile. TagName can be used for segmentation and it is limited to 256 characters See also ServerAddPlayerTagAsync, ServerGetPlayerTagsAsync. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be one of global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFSegments.h

## See also

[PFSegments members](/services/playfab/api-references/c/pfsegments/pfsegments_members)


## Related topics

- [Services C API overview - PFSegments.h](/services/playfab/api-references/c/pfsegments/pfsegments_members.md)
- [PFSegmentsServerGetPlayerTagsAsync](/services/playfab/api-references/c/pfsegments/functions/pfsegmentsservergetplayertagsasync.md)
- [PFSegmentsServerAddPlayerTagAsync](/services/playfab/api-references/c/pfsegments/functions/pfsegmentsserveraddplayertagasync.md)
- [PFSegmentsRemovePlayerTagRequest](/services/playfab/api-references/c/pfsegmentstypes/structs/pfsegmentsremoveplayertagrequest.md)
- [PFSegmentsServerGetPlayerTagsGetResult](/services/playfab/api-references/c/pfsegments/functions/pfsegmentsservergetplayertagsgetresult.md)
