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

Delete a poll

Copy link

You can delete a poll by specifying the pollId in the deletePoll() method and only the user who created the poll can delete the poll. Also channel operators can delete any poll in a channel as well.

try {
  await channel.deletePoll(pollId: POLL_ID);
} catch (e) {
  // Handle error.