Delete a channel
Chat UI's channel list implements swipe-to-delete functionality by default.
If the default implementation doesn't meet your requirements—for example, if you need to delete all channels—you can use the NCBaseChannel APIs from Chat SDK.
tip
For example:
- Use
-[NCBaseChannel deleteWithCompletion:]to delete the current channel - Use
+[NCBaseChannel deleteChannels:completion:]to delete multiple channels at once
See the NexconnChatUI apidoc for detailed usage. Note that Chat SDK methods don't automatically refresh the UI. You'll need to implement custom notification logic to refresh the view based on your business requirements.