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

# PFAccountManagementServerRevokeBansAsync

> Revoke all active bans specified with BanId.

Revoke all active bans specified with BanId.

## Syntax

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

### Parameters

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle for a title Entity obtained using PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFAccountManagementRevokeBansRequest\*](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementrevokebansrequest)

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 Win32, Linux, and macOS. Setting the active state of all bans requested to Inactive regardless of whether that ban has already expired. BanIds that do not exist will be skipped. Returns information about applied updates only. See also ServerBanUsersAsync, ServerGetUserBansAsync, ServerRevokeAllBansForUserAsync, ServerUpdateBansAsync. When the asynchronous task is complete, call [PFAccountManagementServerRevokeBansGetResultSize](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverrevokebansgetresultsize) and [PFAccountManagementServerRevokeBansGetResult](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverrevokebansgetresult) to get the result.

## Requirements

**Header:** PFAccountManagement.h

## See also

[PFAccountManagement members](/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)
