---
title: "removeParticipant(_:)"
framework: cloudkit
role: symbol
role_heading: Instance Method
path: "cloudkit/ckshare/removeparticipant(_:)"
---

# removeParticipant(_:)

Removes a participant from the share.

## Declaration

```swift
func removeParticipant(_ participant: CKShare.Participant)
```

## Parameters

- `participant`: The participant to remove from the share.

## Discussion

Discussion To modify the list of participants, a share’s publicPermission must be CKShare.ParticipantPermission.none. You can’t mix and match public and private users in the same share. You can only add certain participant types with this API. See CKShare.Participant for more information.

## See Also

### Configuring the Share

- [publicPermission](cloudkit/ckshare/publicpermission.md)
- [addParticipant(_:)](cloudkit/ckshare/addparticipant(_:).md)
- [CKShare.Participant](cloudkit/ckshare/participant.md)
