---
title: "clearBadge(for:completionHandler:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkgamesession/clearbadge(for:completionhandler:)"
---

# clearBadge(for:completionHandler:)

Clears the badge from the designated players.

## Declaration

```swift
func clearBadge(for players: [GKCloudPlayer], completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func clearBadge(for players: [GKCloudPlayer]) async throws
```

## Parameters

- `players`: An array of GKCloudPlayers identifying the players that are to have their badge removed.
- `completionHandler`: A block that is called after the badges have been removed from the players.

## See Also

### Communicating Between Players

- [badgedPlayers](gamekit/gkgamesession/badgedplayers.md)
- [sendMessage(withLocalizedFormatKey:arguments:data:to:badgePlayers:completionHandler:)](gamekit/gkgamesession/sendmessage(withlocalizedformatkey:arguments:data:to:badgeplayers:completionhandler:).md)
