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

# PFAccountManagementServerDeletePlayerAsync

> 타이틀에서 사용자의 플레이어 계정을 제거하고 관련된 모든 데이터를 삭제합니다.

타이틀에서 사용자의 플레이어 계정을 제거하고 관련된 모든 데이터를 삭제합니다.

## Syntax

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

### Parameters

**`titleEntityHandle`**   PFEntityHandle

PFAuthenticationGetEntityWithSecretKeyAsync를 사용하여 얻은 타이틀 Entity에 대한 PFEntityHandle입니다.

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

채워진 요청 개체입니다.

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

비동기 작업을 위한 XAsyncBlock입니다.

### Return value

Type: HRESULT

이 API 작업의 결과 코드입니다.

## Remarks

이 API는 Win32, Linux 및 macOS에서 사용할 수 있습니다. 통계, 사용자 지정 데이터, 인벤토리, 구매, 가상 통화 잔액, 캐릭터 및 공유 그룹 멤버십을 포함하여 플레이어와 관련된 모든 데이터를 삭제합니다. 모든 순위표 및 플레이어 검색 인덱스에서 플레이어를 제거합니다. 플레이어와 연결된 PlayStream 이벤트 기록은 삭제하지 않습니다. 타이틀에서 플레이어를 생성한 게시자 사용자 계정과 사용자 이름, 비밀번호, 이메일 주소, 계정 연결, 친구 목록과 같은 관련 데이터는 삭제하지 않습니다. 이 API는 삭제를 위한 플레이어를 큐에 추가하고 즉시 반환합니다. 모든 플레이어 데이터가 완전히 삭제되기까지 몇 분 이상 걸릴 수 있습니다. 플레이어 데이터가 완전히 삭제될 때까지 동일한 타이틀에서 동일한 사용자 계정으로 플레이어를 다시 생성하려는 시도는 'AccountDeleted' 오류로 실패합니다. 이 API는 게임 관리자 웹 사이트에서 옵션으로 사용하도록 활성화되어야 합니다. 기본적으로 비활성화되어 있습니다. XAsyncGetStatus를 호출하여 작업 상태를 가져옵니다. 서비스 호출이 실패한 경우, 비동기 결과는 E\_PF\_API\_NOT\_ENABLED\_FOR\_GAME\_SERVER\_ACCESS 또는 전역 PlayFab 서비스 오류 중 하나가 됩니다. 오류 처리에 대한 자세한 내용은 문서 페이지 "Handling PlayFab Errors"를 참조하십시오.

## Requirements

**Header:** PFAccountManagement.h

## See also

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


## Related topics

- [Services C API 개요 - PFAccountManagement.h](/ko/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)
- [PFAccountManagementServerGetPlayerProfileAsync](/ko/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayerprofileasync.md)
- [PFAccountManagementDeletePlayerRequest](/ko/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementdeleteplayerrequest.md)
- [PFAccountManagementServerGetPlayerCombinedInfoAsync](/ko/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayercombinedinfoasync.md)
- [PFAccountManagementServerGetPlayerProfileGetResult](/ko/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayerprofilegetresult.md)
