Chat / Android
Chat Android v4
Chat Android
Chat
Android
Home
/
Chat
/
Android
/
Channel
This is the new Docs for Chat SDK v4 for Android. To see the previous Docs, click here.

Delete a channel

Only channel operators are allowed to delete a channel. To delete a channel, follow the code below.

Open channel

openChannel.delete { e ->
    if (e != null) {
        // Handle error.
    }

    // The channel is successfully deleted from the client app.
}

Group channel

groupChannel.delete { e ->
    if (e != null) {
        // Handle error.
        return@delete
    }
    // The channel is successfully deleted from the client app.
}