/ SDKs / Flutter
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

Delete a poll option

Copy link

You can delete a poll option by specifying the pollId and the pollOptionId in the deletePollOption() method. Also channel operators can delete any poll option of a poll as well.

await channel.deletePollOption(
    pollId: result.id, pollOptionId: result.options[0].id, OnCompleteCallback? onCompleted,);