/ SDKs / Android
SDKs
Chat SDKs Android v4
Chat SDKs Android
Chat SDKs
Android
Version 4

Delete a channel

Copy link

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

Open channel

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

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

Group channel

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