> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# cleanup

> chat_manager::cleanup

# chat\_manager::cleanup

채팅 인스턴스와 연결된 모든 리소스를 즉시 회수합니다.

## 구문

```cpp theme={null}
void cleanup(  
)  
```

### 매개 변수

없음.

### 반환 값

형식: void

없음.

## 설명

이 메서드는 이 채팅 인스턴스와 연결된 모든 리소스를 즉시 회수합니다. 앱이 더 이상 Game Chat 2를 사용하여 통신할 필요가 없거나 앱이 일시 중단될 때 이 메서드를 호출하여 초기화된 채팅 인스턴스에 할당된 리소스를 해제합니다. [chat\_manager::initialize](https://docs.xbox.com/ko/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md) 메서드에 대한 모든 호출에는 이 메서드에 대한 해당 호출이 있어야 합니다. 채팅 인스턴스 초기화 및 정리에 대한 자세한 내용은 [Game Chat 2 C++ API 사용](https://docs.xbox.com/ko/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)을 참조하세요.

## 요구 사항

**헤더:** GameChat2.h

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 관련 항목

[Game Chat 2 소개](https://docs.xbox.com/ko/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[chat\_manager](https://docs.xbox.com/ko/reference/chat/gamechat2/classes/chat_manager/chat_manager.md)


## Related topics

- [HCCleanup](https://docs.xbox.com/ko/reference/live/httpclient/httpclient/functions/hccleanup.md)
- [HCTraceCleanup](https://docs.xbox.com/ko/reference/live/httpclient/trace/functions/hctracecleanup.md)
- [HCCleanupAsync](https://docs.xbox.com/ko/reference/live/httpclient/httpclient/functions/hccleanupasync.md)
- [XblCleanupAsync](https://docs.xbox.com/ko/reference/live/xsapi-c/xbox_live_global_c/functions/xblcleanupasync.md)
- [PartyManager::Cleanup](https://docs.xbox.com/ko/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_cleanup.md)
