/ SDKs / Flutter
SDKs
Chat SDKs Flutter v4
Chat SDKs Flutter
Chat SDKs
Flutter
Version 4

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.

try {
  await channel.deletePollOption(
    pollId: POLL_ID,
    pollOptionId: POLL_OPTION_ID,
  );
} catch (e) {
  // Handle error.
}