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

# PFLeaderboardsUnlinkLeaderboardFromStatisticAsync

> Reference for PFLeaderboardsUnlinkLeaderboardFromStatisticAsync, a PlayFab Services C API function that unlinks a leaderboard from its statistic.

Unlinks a leaderboard definition from it's linked statistic definition.

## Syntax

```cpp theme={null}
HRESULT PFLeaderboardsUnlinkLeaderboardFromStatisticAsync(  
    PFEntityHandle entityHandle,  
    const PFLeaderboardsUnlinkLeaderboardFromStatisticRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFLeaderboardsUnlinkLeaderboardFromStatisticRequest\*](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsunlinkleaderboardfromstatisticrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Windows, Linux, and macOS. See also LeaderboardCreateLeaderboardDefinitionAsync. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_LEADERBOARD\_NOT\_FOUND, E\_PF\_NO\_LINKED\_STATISTIC\_TO\_LEADERBOARD or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFLeaderboards.h

## See also

[PFLeaderboards members](/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members)


## Related topics

- [Services C API overview - PFLeaderboards.h](/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [PFLeaderboardsUnlinkLeaderboardFromStatisticRequest](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsunlinkleaderboardfromstatisticrequest.md)
- [Ranking players by statistics](/services/playfab/community/leaderboards/leaderboards-linked-to-stats.md)
- [Leaderboards](/build/steam-porting-guide/features/steam-leaderboards.md)
- [API Leaderboard reference](/services/playfab/community/leaderboards/api-reference.md)
