deleteAllUsersFromChannel

abstract suspend fun deleteAllUsersFromChannel(channel: Channel): RainbowResult<Unit>

Remove all users from the specified channel.

This method removes every user from the channel, effectively clearing the entire membership. The operation will not delete the channel itself, but it will ensure that no user remains affiliated with it. This method is useful when the channel needs to be cleared of all participants, but the channel itself remains active.

Return

A RainbowResult indicating the success or failure of the operation. On success, no content is returned.

Parameters

channel

The Channel object from which all users will be removed.