<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PushToTalk",
  "identifier" : "/documentation/PushToTalk/PTChannelManager/leaveChannel(channelUUID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Push to Talk"
    ],
    "preciseIdentifier" : "c:objc(cs)PTChannelManager(im)leaveChannelWithUUID:"
  },
  "title" : "leaveChannel(channelUUID:)"
}
-->

# leaveChannel(channelUUID:)

Leaves a channel with the identifier.

```
func leaveChannel(channelUUID: UUID)
```

## Parameters

`channelUUID`

The channel identifier.

## Discussion

If successful, you receive a callback from [`channelManager(_:didLeaveChannel:reason:)`](/documentation/PushToTalk/PTChannelManagerDelegate/channelManager(_:didLeaveChannel:reason:)) with `PTChannelLeaveReason.programmaticRequest`; otherwise, you receive a failure reason through [`channelManager(_:failedToLeaveChannel:error:)`](/documentation/PushToTalk/PTChannelManagerDelegate/channelManager(_:failedToLeaveChannel:error:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)